diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-07-29 22:11:35 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 17:04:05 +0200 |
commit | 1a3f5d0400d786aec41ede15fec5710ad1a1d18b (patch) | |
tree | 4486fca1795bccd0270c91f4a1119658e9b05493 /fs/btrfs/version.sh | |
parent | Btrfs: Leaf reference cache update (diff) | |
download | linux-1a3f5d0400d786aec41ede15fec5710ad1a1d18b.tar.xz linux-1a3f5d0400d786aec41ede15fec5710ad1a1d18b.zip |
Btrfs: Fix version.sh when used outside of an hg repo
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/version.sh')
-rw-r--r-- | fs/btrfs/version.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/version.sh b/fs/btrfs/version.sh index fd9b53d39860..4d06497d2ec5 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... |