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.
This commit is contained in:
Sverre Rabbelier
2011-07-15 16:37:28 +02:00
committed by Pat Thoyts
parent 0b27aab3aa
commit a1ce264ce6

View File

@@ -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