From: Ramkumar Ramachandra Date: Sat, 22 Jun 2013 07:58:18 +0000 (+0530) Subject: t/t5505-remote: test multiple push/pull in remotes-file X-Git-Tag: v1.8.4-rc0~90^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0f249d18617848f98aee0b9b9bb90cfb2ecdb68;p=thirdparty%2Fgit.git t/t5505-remote: test multiple push/pull in remotes-file Extend the test "migrate a remote from named file in $GIT_DIR/remotes" to test that multiple "Push:" and "Pull:" lines in the remotes-file works as expected. Signed-off-by: Ramkumar Ramachandra Signed-off-by: Junio C Hamano --- diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index b910f540ed..ee5d65d52f 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -735,7 +735,9 @@ test_expect_success 'rename a remote with name prefix of other remote' ' cat >remotes_origin <push_expected <<-\EOF && + refs/heads/master:refs/heads/upstream + refs/heads/next:refs/heads/upstream2 + EOF + cat >fetch_expected <<-\EOF && + refs/heads/master:refs/heads/origin + refs/heads/next:refs/heads/origin2 + EOF + git config --get-all remote.origin.push >push_actual && + git config --get-all remote.origin.fetch >fetch_actual && + test_cmp push_expected push_actual && + test_cmp fetch_expected fetch_actual ) '