Commit e8039a4a9c3a427314f84f317c4bb011b31b2be5

Stefan Sperling 2019-08-23T13:20:34

create tag objects with both Git and Got during tag -l test

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/regress/cmdline/tag.sh b/regress/cmdline/tag.sh
index 053f3a2..dd28ecc 100755
--- a/regress/cmdline/tag.sh
+++ b/regress/cmdline/tag.sh
@@ -128,8 +128,10 @@ function test_tag_list {
 	local tag=1.0.0
 	local tag2=2.0.0
 
+	# create tag with Git
 	(cd $testroot/repo && git tag -a -m 'test' $tag)
-	(cd $testroot/repo && git tag -a -m 'test' $tag2)
+	# create tag with Got
+	(cd $testroot/repo && got tag -m 'test' $tag2 > /dev/null)
 
 	tag_id=`got ref -r $testroot/repo -l \
 		| grep "^refs/tags/$tag" | tr -d ' ' | cut -d: -f2`