git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / Atom feed
9c176c7cbb69846014c58e87f41759ebef641d3e blob 1660 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 
#!/bin/sh

test_description='git command aliasing'

. ./test-lib.sh

test_expect_success 'nested aliases - internal execution' '
	git config alias.nested-internal-1 nested-internal-2 &&
	git config alias.nested-internal-2 status &&
	git nested-internal-1 >output &&
	test_i18ngrep "^On branch " output
'

test_expect_success 'nested aliases - mixed execution' '
	git config alias.nested-external-1 nested-external-2 &&
	git config alias.nested-external-2 "!git nested-external-3" &&
	git config alias.nested-external-3 status &&
	git nested-external-1 >output &&
	test_i18ngrep "^On branch " output
'

test_expect_success 'looping aliases - internal execution' '
	git config alias.loop-internal-1 loop-internal-2 &&
	git config alias.loop-internal-2 loop-internal-3 &&
	git config alias.loop-internal-3 loop-internal-2 &&
	test_must_fail git loop-internal-1 2>output &&
	test_i18ngrep "^fatal: alias loop detected: expansion of" output
'

# This test is disabled until external loops are fixed, because would block
# the test suite for a full minute.
#
#test_expect_failure 'looping aliases - mixed execution' '
#	git config alias.loop-mixed-1 loop-mixed-2 &&
#	git config alias.loop-mixed-2 "!git loop-mixed-1" &&
#	test_must_fail git loop-mixed-1 2>output &&
#	test_i18ngrep "^fatal: alias loop detected: expansion of" output
#'

test_expect_success 'run-command parses empty args properly, using sq_quote_buf_pretty' '
	cat >expect <<-EOF &&
	fatal: cannot change to '\''alias.foo=frotz foo '\'''\'' bar'\'': No such file or directory
	EOF
	test_expect_code 128 git -C "alias.foo=frotz foo '\'''\'' bar" foo 2>actual &&
	test_cmp expect actual
'

test_done
debug log:

solving 9c176c7cbb ...
found 9c176c7cbb in https://public-inbox.org/git/b9a68598d79724849995283e6967f1c52843c048.1566830682.git.gitgitgadget@gmail.com/
found a070e645d7 in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100755 a070e645d7fbea6486ff60ee94d7f6df72d84cc6	t/t0014-alias.sh

applying [1/1] https://public-inbox.org/git/b9a68598d79724849995283e6967f1c52843c048.1566830682.git.gitgitgadget@gmail.com/
diff --git a/t/t0014-alias.sh b/t/t0014-alias.sh
index a070e645d7..9c176c7cbb 100755

Checking patch t/t0014-alias.sh...
Applied patch t/t0014-alias.sh cleanly.

index at:
100755 9c176c7cbb69846014c58e87f41759ebef641d3e	t/t0014-alias.sh

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

Archives are clonable:
	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

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/

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