From: Chris Mason Date: Tue, 29 Jul 2008 20:11:35 +0000 (-0400) Subject: Btrfs: Fix version.sh when used outside of an hg repo X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~87 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1a3f5d0400d786aec41ede15fec5710ad1a1d18b;p=linux-2.6-omap-h63xx.git Btrfs: Fix version.sh when used outside of an hg repo Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/version.sh b/fs/btrfs/version.sh index fd9b53d3986..4d06497d2ec 100644 --- a/fs/btrfs/version.sh +++ b/fs/btrfs/version.sh @@ -6,10 +6,10 @@ # Copyright 2008, Oracle # Released under the GNU GPLv2 -v="Btrfs v0.15" +v="v0.15" which hg > /dev/null -if [ $? == 0 ]; then +if [ -d .hg ] && [ $? == 0 ]; then last=$(hg tags | grep -m1 -o '^v[0-9.]\+') # now check if the repo has commits since then...