projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
017e536
)
Btrfs: Fix version.sh when used outside of an hg repo
author
Chris Mason
<chris.mason@oracle.com>
Tue, 29 Jul 2008 20:11:35 +0000
(16:11 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:05 +0000
(11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/version.sh
patch
|
blob
|
history
diff --git
a/fs/btrfs/version.sh
b/fs/btrfs/version.sh
index fd9b53d398602fac7bdea67597b5843b5f544d63..4d06497d2ec55236e411ed27e99cc6d207ea35db 100644
(file)
--- 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...