index 5b82b68e93980924befa9ecc99e099e77da27b5f..8f6c4fea2429cef0da4748f8871ceaed94b432cc 100644 (file)
--- a/templates/hooks--update
+++ b/templates/hooks--update
fi
# If this tag succeeds another, then show which tag it replaces
- prevtag=$(git describe $newrev^ 2>/dev/null | sed 's/-g.*//')
+ prevtag=$(git describe --abbrev=0 $newrev^ 2>/dev/null)
if [ -n "$prevtag" ]; then
echo " replaces $prevtag"
fi