Commit d38b7b80 authored by Alex Converse's avatar Alex Converse
Browse files

Check if a git-svn revision number is available to try to get better version

information from git.

Originally committed as revision 20015 to svn://
parent 98422c44
......@@ -10,6 +10,12 @@ q
}' .svn/entries 2>/dev/null)
test $revision && revision=SVN-r$revision
# check for git svn revision number
if ! test $revision; then
revision=$(cd "$1" && git svn find-rev HEAD)
test $revision && revision=git-svn-r$revision
# check for git short hash
if ! test $revision; then
revision=$(cd "$1" && git log -1 --pretty=format:%h)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment