From: Ramkumar Ramachandra Date: Sat, 22 Jun 2013 07:58:09 +0000 (+0530) Subject: t/t5505-remote: test push-refspec in branches-file X-Git-Tag: v1.8.4-rc0~90^2~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/294547f5647688c6ee565811f9762a34e521e746 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 Signed-off-by: Junio C Hamano --- 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" ) '