From b6654627c85ad3ceb4cd8b8593bf5ab3de2ec77a Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Sun, 21 Jun 2009 03:34:20 +0000 Subject: [PATCH] fedora-git-commit-mail-hook: Use --abbrev=0 option for git describe (#1362) The spacewalk maintainers reported issues when pushing tags. Replacing the sed 's/-g.*//' with the --abbrev=0 will hopefully correct those problems. --- configs/system/fedora-git-commit-mail-hook | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configs/system/fedora-git-commit-mail-hook b/configs/system/fedora-git-commit-mail-hook index 85359ca..e80a461 100644 --- a/configs/system/fedora-git-commit-mail-hook +++ b/configs/system/fedora-git-commit-mail-hook @@ -82,7 +82,7 @@ then git cat-file tag $3 | sed -n '5,$p' echo fi - prev=$(git describe "$3^" | sed 's/-g.*//') + prev=$(git describe --abbrev=0 "$3^") # the first tag in a repo will yield no $prev if [ -z "$prev" ]; then echo "Changes since the dawn of time:" -- 1.5.5.6