git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3] git-svn: add support for prefixed globs in config

From
EWEric Wong <normalperson@yhbt.net>
Date
Dec 18, 2015, 00:42 UTC
Message-ID
<20151218004247.GA2203@dcvr.yhbt.net>
In-Reply-To
<1450387227-7952-1-git-send-email-vleschuk@accesssoftek.com>
Victor Leschuk <vleschuk@gmail.com> wrote:
Show 15 quoted lines
> --- /dev/null
> +++ b/t/t9168-git-svn-prefixed-glob.sh
> @@ -0,0 +1,136 @@
> +#!/bin/sh
> +test_description='git svn globbing refspecs with prefixed globs'
> +. ./lib-git-svn.sh
> +
> +cat >expect.end <<EOF
> +the end
> +hi
> +start a new branch
> +initial
> +EOF
> +
> +test_expect_success 'test refspec prefixed globbing' '
<snip>
> +echo try to try >expect.two &&
> +echo nothing to see here >>expect.two &&
> +cat expect.end >>expect.two
What happens when the cat fails?

Should probably be folded into the subsequent test case. (I used to write tests with "set -e", but it's not descriptive as far as failure goes).

> +test_expect_success 'test left-hand-side only prefixed globbing' '
> +	git config --add svn-remote.two.url "$svnrepo" &&
> +echo "Only one set of wildcard directories" \
> +     "(e.g. '*' or '*/*/*') is supported: 'branches/b_*/t/*'" >expect.four &&
> +echo "" >>expect.four
Same with echo...
> +test_expect_success 'test disallow prefixed multi-globs' '
Previous: Victor Leschuk
Message 2 of 2 in “git-svn: add support for prefixed globs in config”
  1. git-svn: add support for prefixed globs in configVictor Leschuk, Dec 17, 2015
  2. Eric WongDec 18, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.