[Pkg-nagios-changes] [pkg-nagios-snmp-plugins] 04/04: Merging upstream changes of github-release.sh

Jan Wagner waja at moszumanska.debian.org
Mon Mar 16 22:48:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to branch master
in repository pkg-nagios-snmp-plugins.

commit 94da9a07c036d2fe1809abd47e5dc97aa8295e1b
Author: Jan Wagner <waja at cyconet.org>
Date:   Mon Mar 16 23:48:24 2015 +0100

    Merging upstream changes of github-release.sh
---
 debian/bin/github-release.sh | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/debian/bin/github-release.sh b/debian/bin/github-release.sh
index 2542112..79da0c9 100755
--- a/debian/bin/github-release.sh
+++ b/debian/bin/github-release.sh
@@ -30,8 +30,8 @@
 
 # This script provides a simple continuous deployment
 # solution that allows Travis CI to publish a new GitHub 
-# release and upload assets to it whenever an annotated or
-# signed tag is pushed (git tag -a/-s; git push --tags).
+# release and upload assets to it whenever a tag is pushed:
+# git tag; git push --tags
 #
 # It is created as a temporary solution whilst we wait for
 # Travis DPL to support GitHub:
@@ -83,7 +83,7 @@ REPO=$1 && shift
 RELEASE=$1 && shift
 RELEASEFILES=$@
 
-if ! TAG=`git describe --exact-match --all 2>/dev/null`; then
+if ! TAG=`git describe --exact-match --tags 2>/dev/null`; then
   echo "This commit is not a tag so not creating a release"
   exit 0
 fi
@@ -98,7 +98,6 @@ if [ "$TRAVIS" = "true" ] && [ "$TRAVIS_TAG" != "$RELEASE" ]; then
   exit 1
 fi
 
-TAG=`echo "$TAG" | sed 's/^tags\///'`
 if [ "$TAG" != "$RELEASE" ]; then
   echo "Error: The tag ($TAG) does not match the indicated release ($RELEASE)"
   exit 1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-snmp-plugins.git



More information about the Pkg-nagios-changes mailing list