[RFC PATCH v4 3/3] Test git remote add -f --remote-tags

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

 



The test adds and fetches a remote repository and then lists the
imported remote-tags verifying the correct values.

Signed-off-by: Wink Saville <wink@xxxxxxxxxxx>
---
 t/t5505-remote.sh | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh
index a6c0178f3a..cb30ed5cf2 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -573,6 +573,26 @@ test_expect_success 'add --tags' '
 	test_cmp test/expect test/output
 '
 
+cat >test/expect <<\EOF
+origin/some-tag
+origin/foobar-tag
+--remote-tags
+EOF
+
+test_expect_success 'add --remote-tags' '
+	rm -rf add-tags &&
+	(
+		mkdir add-tags &&
+		cd add-tags &&
+		git init &&
+		git remote add -f --remote-tags origin ../one &&
+		git tag -l origin/some-tag >../test/output &&
+		git tag -l origin/foobar-tag >>../test/output &&
+		git config remote.origin.tagopt >>../test/output
+	) &&
+	test_cmp test/expect test/output
+'
+
 cat >test/expect <<\EOF
 --no-tags
 EOF
-- 
2.17.0.393.g4573f5e134




[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]

  Powered by Linux