Skip to content

Commit 294547f

Browse files
artagnongitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9b9439a commit 294547f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t5505-remote.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,8 @@ test_expect_success 'migrate a remote from named file in $GIT_DIR/branches' '
764764
git remote rename origin origin &&
765765
! test -f .git/branches/origin &&
766766
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"
768769
)
769770
'
770771

0 commit comments

Comments
 (0)