X-Git-Url: https://git.ao2.it/debian/scripts.git/blobdiff_plain/734e404c0d9c18d9ecf4b7ffb696b1a22be962b1..cf900075a430bb2c61ef2aae164d0477637be018:/gbp_retag_commit.sh diff --git a/gbp_retag_commit.sh b/gbp_retag_commit.sh index 3522c20..4bffd36 100755 --- a/gbp_retag_commit.sh +++ b/gbp_retag_commit.sh @@ -17,10 +17,14 @@ usage() { } HASH="$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?