[RFD/PATCH v3 22/23] t5800: document inability to push new branch with old content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sverre Rabbelier <srabbelier@xxxxxxxxx>
---

  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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]