From a019678827a352d5a62c44bb03859dcfd10b383c Mon Sep 17 00:00:00 2001 From: Sven Peter Date: Wed, 13 May 2009 21:39:57 +0200 Subject: [PATCH] wtf --- describesimple.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/describesimple.sh b/describesimple.sh index 4a0d1a8..b1d3d30 100755 --- a/describesimple.sh +++ b/describesimple.sh @@ -3,11 +3,7 @@ # Check for git and a git repo. if head=`git rev-parse --verify HEAD 2>/dev/null`; then comm=`git log --pretty=oneline -n1 | awk ' { print $1 }'` - if tagver=`git describe --exact-match --match bootmii-\* $comm 2>/dev/null`; then - printf "%s" "BootMii v"`printf "%s" $tagver | awk '{ sub (/bootmii-/, ""); print;}'` - else - printf "%s" ""`printf "%s" \`git describe --abbrev=4 --match bootmii-\* $comm | awk '{ sub (/bootmii-/, ""); print;}'\`` - fi + printf "%s" ""`printf "%s" \`git describe --abbrev=4 --match bootmii-\* $comm | awk '{ sub (/bootmii-/, ""); print;}'\`` # Are there uncommitted changes? git update-index --refresh --unmerged > /dev/null