mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
use git describe instead of git log
This commit is contained in:
parent
ea0c1c95be
commit
fcd318089d
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
get_svnversion()
|
||||
{
|
||||
alias git_svnversion="git svn find-rev `git log -1 --pretty=format:%H 2>/dev/null` 2>/dev/null"
|
||||
alias git_svnversion="git svn find-rev `git describe --always` 2>/dev/null"
|
||||
LANG=C SVN_VERSION=`/usr/bin/svnversion`
|
||||
if [ "X$SVN_VERSION" == "Xexported" -o "X$SVN_VERSION" == "X" ]; then
|
||||
git_svnversion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue