2 # Copyright (c) 2006, Junio C Hamano.
4 test_description='Per branch config variables affects "git fetch".
12 test_expect_success setup '
13 echo >file original &&
15 git commit -a -m original'
17 test_expect_success "clone and setup child repos" '
20 echo >file updated by one &&
21 git commit -a -m "updated by one" &&
25 git repo-config branch.master.remote one &&
27 echo "URL: ../one/.git/"
28 echo "Pull: refs/heads/master:refs/heads/one"
32 test_expect_success "fetch test" '
34 echo >file updated by origin &&
35 git commit -a -m "updated by origin" &&
38 test -f .git/refs/heads/one &&
39 mine=`git rev-parse refs/heads/one` &&
40 his=`cd ../one && git rev-parse refs/heads/master` &&
41 test "z$mine" = "z$his"