Skip to content

Commit

Permalink
Btrfs: Fix version.sh when used outside of an hg repo
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 017e536 commit 1a3f5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit 1a3f5d0

Please sign in to comment.