git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
421f16ddfd40c616ac3c5daefa90ad66405dc5e8 blob 1028 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
49
50
51
 
#!/bin/sh

test_description='fetch follows remote-tracking branches correctly'

. ./test-lib.sh

test_expect_success setup '
	>file &&
	git add . &&
	test_tick &&
	git commit -m Initial &&
	git branch b-0 &&
	git branch b1 &&
	git branch b/one &&
	test_create_repo other &&
	(
		cd other &&
		git config remote.origin.url .. &&
		git config remote.origin.fetch "+refs/heads/b/*:refs/remotes/b/*"
	)
'

test_expect_success fetch '
	(
		cd other && git fetch origin &&
		test "$(git for-each-ref --format="%(refname)")" = refs/remotes/b/one
	)
'

test_expect_success 'info/refs not created by fetch' '
	(
		cd other &&
		test_path_is_dir .git/info &&
		! test_path_is_file .git/info/refs
	)
'

test_expect_success 'info/refs updated by fetch if it already exists' '
	git branch b/for-info-refs &&
	(
		cd other &&
		git update-server-info &&
		test_path_is_file .git/info/refs &&
		! grep b/for-info-refs .git/info/refs &&
		git fetch &&
		test_path_is_file .git/info/refs &&
		grep b/for-info-refs .git/info/refs
	)
'

test_done
debug log:

solving 421f16ddfd ...
found 421f16ddfd in https://public-inbox.org/git/20190515004551.emrxvboqemwnqh4g@dcvr/
found 65d1e05bd6 in git.git.git
preparing index
index prepared:
100755 65d1e05bd62af9c2b6dfa6cdd841d03622bf94ac	t/t5513-fetch-track.sh

applying [1/1] https://public-inbox.org/git/20190515004551.emrxvboqemwnqh4g@dcvr/
diff --git a/t/t5513-fetch-track.sh b/t/t5513-fetch-track.sh
index 65d1e05bd6..421f16ddfd 100755

Checking patch t/t5513-fetch-track.sh...
Applied patch t/t5513-fetch-track.sh cleanly.

index at:
100755 421f16ddfd40c616ac3c5daefa90ad66405dc5e8	t/t5513-fetch-track.sh

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

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).