From 5cf32455042841da3661b9be62db93531a204543 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 1c62001fce..68f8418f62 100755 --- a/t/t5800-remote-helpers.sh +++ b/t/t5800-remote-helpers.sh @@ -125,6 +125,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