git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
3ead86c4fe07ce86e2b5d614b713b493a36daa1f blob 652 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
#!/bin/sh

test_description='ls-tree with a folder with braces'

. ./test-lib.sh

test_expect_success 'setup' '
	mkdir -p "newdir/{{curly}}" &&
	touch "newdir/{{curly}}/one" &&
	git add "newdir/{{curly}}/one" &&
	git commit -m test
'

test_expect_success 'ls-tree with curly brace folder' '
	cat >expect <<-EOF &&
	100644 blob $EMPTY_BLOB	one
	EOF
	git ls-tree -r "HEAD:newdir/{{curly}}" >actual &&
	test_cmp expect actual
'

test_expect_success 'ls-tree with type restriction and curly brace folder' '
	cat >expect <<-EOF &&
	100644 blob $EMPTY_BLOB	one
	EOF
	git ls-tree "HEAD^{tree}:newdir/{{curly}}" >actual &&
	test_cmp expect actual
'

test_done
debug log:

solving 3ead86c4fe ...
found 3ead86c4fe in https://public-inbox.org/git/20181223234058.5834-1-stanhu@gmail.com/ ||
	https://public-inbox.org/git/20181223233736.10306-1-stanhu@gmail.com/ ||
	https://public-inbox.org/git/20181223232716.6339-1-stanhu@gmail.com/

applying [1/3] https://public-inbox.org/git/20181223234058.5834-1-stanhu@gmail.com/
diff --git a/t/t3104-ls-tree-braces.sh b/t/t3104-ls-tree-braces.sh
new file mode 100755
index 0000000000..3ead86c4fe

Checking patch t/t3104-ls-tree-braces.sh...
Applied patch t/t3104-ls-tree-braces.sh cleanly.

skipping https://public-inbox.org/git/20181223233736.10306-1-stanhu@gmail.com/ for 3ead86c4fe
skipping https://public-inbox.org/git/20181223232716.6339-1-stanhu@gmail.com/ for 3ead86c4fe
index at:
100755 3ead86c4fe07ce86e2b5d614b713b493a36daa1f	t/t3104-ls-tree-braces.sh

git@vger.kernel.org list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ https://public-inbox.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.version-control.git
	nntp://ie5yzdi7fg72h7s4sdcztq5evakq23rdt33mfyfcddc5u3ndnw24ogqd.onion/inbox.comp.version-control.git
	nntp://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git