mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix identification of SVN revision after picking up incremental changes in the remote CEF Git repository.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1802 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -9,7 +9,7 @@ def is_checkout(path):
|
||||
""" Returns true if the path represents a git checkout. """
|
||||
return os.path.exists(os.path.join(path, '.git'))
|
||||
|
||||
def get_hash(path = '.', branch = 'master'):
|
||||
def get_hash(path = '.', branch = 'HEAD'):
|
||||
""" Returns the git hash for the specified branch/tag/hash. """
|
||||
cmd = "git rev-parse %s" % (branch)
|
||||
result = exec_cmd(cmd, path)
|
||||
@ -25,7 +25,7 @@ def get_url(path = '.'):
|
||||
return result['out'].strip()
|
||||
return 'Unknown'
|
||||
|
||||
def get_svn_revision(path = '.', branch = 'master'):
|
||||
def get_svn_revision(path = '.', branch = 'HEAD'):
|
||||
""" Returns the SVN revision associated with the specified path and git
|
||||
branch/tag/hash. """
|
||||
svn_rev = "None"
|
||||
|
Reference in New Issue
Block a user