projects
/
debian
/
scripts.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ca9ce58
)
gbp_retag_commit.sh: check that we are in a debian branch
author
Antonio Ospite <ao2@ao2.it>
Wed, 18 Nov 2015 14:36:22 +0000
(15:36 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Wed, 18 Nov 2015 14:39:19 +0000
(15:39 +0100)
gbp_retag_commit.sh
patch
|
blob
|
history
diff --git
a/gbp_retag_commit.sh
b/gbp_retag_commit.sh
index
e2a095b
..
4bffd36
100755
(executable)
--- a/
gbp_retag_commit.sh
+++ b/
gbp_retag_commit.sh
@@
-20,6
+20,11
@@
HASH="$1"
git cat-file -e "${HASH}^{commit}" || { usage 1>&2; exit 1; }
CHANGELOG_HEADER="$(git show $HASH:debian/changelog | head -1)"
git cat-file -e "${HASH}^{commit}" || { usage 1>&2; exit 1; }
CHANGELOG_HEADER="$(git show $HASH:debian/changelog | head -1)"
+if [ "x$CHANGELOG_HEADER" = "x" ];
+then
+ echo "Check that the active branch is a debian branch" 1>&2
+ exit 1
+fi
# TODO: give a warning or an error if this is is an UNRELEASED version?
# TODO: give a warning or an error if this is is an UNRELEASED version?