[RFD/PATCH v3 22/23] t5800: document inability to push new branch with old content
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
---
So, I'm not sure what's going on here. It just says:
"Everything up to date" when you try to do a push like this.
t/t5800-remote-helpers.sh | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/t/t5800-remote-helpers.sh b/t/t5800-remote-helpers.sh
index 1c62001..68f8418 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
--
1.7.5.1.292.g728120