diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2013-06-22 13:28:09 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-23 00:14:15 -0700 |
commit | 294547f5647688c6ee565811f9762a34e521e746 (patch) | |
tree | 928fd28a4e25529b34ec15456730b882789eb1d1 /t/t5505-remote.sh | |
parent | 9b9439afd8e08a2370d008af2836198ff9008179 (diff) | |
download | git-294547f5647688c6ee565811f9762a34e521e746.tar.gz |
t/t5505-remote: test push-refspec in branches-file
The test "migrate a remote from named file in $GIT_DIR/branches" reads
the branches-file, but only checks that the url and fetch-refspec are
set correctly. Check that the push-refspec is also set correctly.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5505-remote.sh')
-rwxr-xr-x | t/t5505-remote.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index 0e7dfa29a4..7ae238b5e2 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -764,7 +764,8 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches' ' git remote rename origin origin && ! test -f .git/branches/origin && test "$(git config remote.origin.url)" = "$origin_url" && - test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin" + test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin" && + test "$(git config remote.origin.push)" = "HEAD:refs/heads/master" ) ' |