[Git][reproducible-builds/reproducible-website][master] 2 commits: Fix up tag handling in the publishing script.

Chris Lamb gitlab at salsa.debian.org
Tue Apr 7 09:36:53 UTC 2020



Chris Lamb pushed to branch master at Reproducible Builds / reproducible-website


Commits:
dba77a73 by Chris Lamb at 2020-04-07T10:36:11+01:00
Fix up tag handling in the publishing script.

- - - - -
2ac054e3 by Chris Lamb at 2020-04-07T10:36:45+01:00
Don't print a misleading warning message if we have just amended the commit prior to pushing.

- - - - -


1 changed file:

- bin/publish


Changes:

=====================================
bin/publish
=====================================
@@ -33,13 +33,13 @@ git add "${FILENAME}"
 if git commit -m "published as ${URL}"
 then
 	git log -1
-	git tag -d "${TAG}" || true
+	git tag -d "${TAG}" 2>/dev/null || true
 	git tag -s "${TAG}" -m "Publish report for ${TAG}"
 
 	echo
 	echo "Now verify the results and run:"
 	echo
-	echo "  $ git push origin master && git push origin ${TAG}"
+	echo "  $ git push origin master && git push origin refs/tags/${TAG}"
 	echo
 
 	while true
@@ -49,7 +49,7 @@ then
 
 		case "${X}" in
 		Y|"")
-			git push origin master && git push origin ${TAG}
+			git push origin master && git push origin refs/tags/${TAG}
 			break
 			;;
 		N|n)



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/compare/2cc8caf3d49a44518ab7b9d76c76296a5ada1cbb...2ac054e3753f41b19af4f9612da905aa2478538c

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/compare/2cc8caf3d49a44518ab7b9d76c76296a5ada1cbb...2ac054e3753f41b19af4f9612da905aa2478538c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200407/81969520/attachment.htm>


More information about the rb-commits mailing list