From 2876e7c95ff150a0e737d5845269e2061a8e6d66 Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Fri, 15 Jul 2011 16:37:28 +0200 Subject: [PATCH] t5800: test pushing a new branch with old content This works now that fast-export has been fixed to properly handle refs that point to a commit that was not exported during the current fast-export run. --- t/t5800-remote-helpers.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/t5800-remote-helpers.sh b/t/t5800-remote-helpers.sh index e7dc668cef..5b0096909c 100755 --- a/t/t5800-remote-helpers.sh +++ b/t/t5800-remote-helpers.sh @@ -138,6 +138,14 @@ test_expect_success 'push new branch by name' ' compare_refs clone HEAD server refs/heads/new-name ' +test_expect_failure 'push new branch with old content' ' + (cd clone && + git checkout -b existing && + git push origin existing + ) && + compare_refs clone refs/heads/existing server refs/heads/existing +' + test_expect_failure 'push new branch with old:new refspec' ' (cd clone && git push origin new-name:new-refspec -- 2.11.4.GIT