https://github.com/git/git
Revision 474294963eb968da7a06650a65a4d17b4bde3ad2 authored by Junio C Hamano on 28 December 2011, 19:32:35 UTC, committed by Junio C Hamano on 28 December 2011, 19:32:35 UTC
* ci/stripspace-docs:
  Update documentation for stripspace
2 parent s 9ddb7ea + 497215d
Raw File
Tip revision: 474294963eb968da7a06650a65a4d17b4bde3ad2 authored by Junio C Hamano on 28 December 2011, 19:32:35 UTC
Merge branch 'ci/stripspace-docs' into maint
Tip revision: 4742949
t5513-fetch-track.sh
#!/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_done
back to top