projects
/
debian
/
scripts.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
263aea1
)
gbp_retag_commit.sh: use the default values of gbp-buildpackage for TAG
author
Antonio Ospite <ao2@ao2.it>
Wed, 18 Nov 2015 14:16:56 +0000
(15:16 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Wed, 18 Nov 2015 14:38:11 +0000
(15:38 +0100)
gbp_retag_commit.sh
patch
|
blob
|
history
diff --git
a/gbp_retag_commit.sh
b/gbp_retag_commit.sh
index
371cecb
..
3522c20
100755
(executable)
--- a/
gbp_retag_commit.sh
+++ b/
gbp_retag_commit.sh
@@
-20,8
+20,6
@@
HASH="$1"
git cat-file -e "${HASH}^{commit}" || { usage 1>&2; exit 1; }
git cat-file -e "${HASH}^{commit}" || { usage 1>&2; exit 1; }
-BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)"
-
CHANGELOG_HEADER="$(git show $HASH:debian/changelog | head -1)"
# TODO: give a warning or an error if this is is an UNRELEASED version?
CHANGELOG_HEADER="$(git show $HASH:debian/changelog | head -1)"
# TODO: give a warning or an error if this is is an UNRELEASED version?
@@
-29,7
+27,8
@@
CHANGELOG_HEADER="$(git show $HASH:debian/changelog | head -1)"
PACKAGE=$(echo "$CHANGELOG_HEADER" | cut -d ' ' -f 1)
VERSION=$(echo "$CHANGELOG_HEADER" | cut -d '(' -f 2 | cut -d ')' -f 1 )
PACKAGE=$(echo "$CHANGELOG_HEADER" | cut -d ' ' -f 1)
VERSION=$(echo "$CHANGELOG_HEADER" | cut -d '(' -f 2 | cut -d ')' -f 1 )
-TAG="$BRANCH_NAME/$VERSION"
+# Use the same default values of gbp-buildpackage
+TAG="debian/$VERSION"
TAG_MESSAGE="$PACKAGE Debian release $VERSION"
# TODO: maybe drop the older $TAG if it exists?
TAG_MESSAGE="$PACKAGE Debian release $VERSION"
# TODO: maybe drop the older $TAG if it exists?