mirror of
https://github.com/git/git.git
synced 2026-02-13 11:21:10 +00:00
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:
committed by
Pat Thoyts
parent
0203a8e850
commit
93a8ce1e49
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user