mirror of
https://github.com/adulau/aha.git
synced 2024-12-31 21:26:18 +00:00
Btrfs: Fix version.sh when used outside of an hg repo
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
017e5369eb
commit
1a3f5d0400
1 changed files with 2 additions and 2 deletions
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue