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>
Ramkumar Ramachandra committed
Jun 22, 2013 at 13:28 UTC
294547f5647688c6ee565811f9762a34e521e746
1 file changed
+2
-1
t/t5505-remote.sh
+2
-1
@@ -764,7 +764,8 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches' '
764
git remote rename origin origin &&
765
! test -f .git/branches/origin &&
766
test "$(git config remote.origin.url)" = "$origin_url" &&
767
- test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin"
767
+ test "$(git config remote.origin.fetch)" = "refs/heads/master:refs/heads/origin" &&
768
+ test "$(git config remote.origin.push)" = "HEAD:refs/heads/master"
769
)
770
'
771