提交 1a3f5d04 编写于 作者: C Chris Mason

Btrfs: Fix version.sh when used outside of an hg repo

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 017e5369
......@@ -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...
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册