diff options
-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 @@ | |||
6 | # Copyright 2008, Oracle | 6 | # Copyright 2008, Oracle |
7 | # Released under the GNU GPLv2 | 7 | # Released under the GNU GPLv2 |
8 | 8 | ||
9 | v="Btrfs v0.15" | 9 | v="v0.15" |
10 | 10 | ||
11 | which hg > /dev/null | 11 | which hg > /dev/null |
12 | if [ $? == 0 ]; then | 12 | if [ -d .hg ] && [ $? == 0 ]; then |
13 | last=$(hg tags | grep -m1 -o '^v[0-9.]\+') | 13 | last=$(hg tags | grep -m1 -o '^v[0-9.]\+') |
14 | 14 | ||
15 | # now check if the repo has commits since then... | 15 | # now check if the repo has commits since then... |