mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
validate:launcher Do not use git -C as it is relatively recent
https://bugzilla.gnome.org/show_bug.cgi?id=736160
This commit is contained in:
parent
ec27b86fa9
commit
e40d225614
1 changed files with 8 additions and 2 deletions
|
@ -26,10 +26,16 @@ GIT_FIRST_HASH = 'da962d096af9460502843e41b7d25fdece7ff1c2'
|
||||||
|
|
||||||
|
|
||||||
def _get_git_first_hash(path):
|
def _get_git_first_hash(path):
|
||||||
|
cdir = os.path.abspath(os.curdir)
|
||||||
try:
|
try:
|
||||||
return subprocess.check_output(['git', '-C', path, 'rev-list', '--max-parents=0', 'HEAD']).rstrip('\n')
|
os.chdir(path)
|
||||||
|
res = subprocess.check_output(['git', 'rev-list', '--max-parents=0', 'HEAD']).rstrip('\n')
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
return ''
|
res = ''
|
||||||
|
finally:
|
||||||
|
os.chdir(cdir)
|
||||||
|
|
||||||
|
return res
|
||||||
|
|
||||||
|
|
||||||
def _in_devel():
|
def _in_devel():
|
||||||
|
|
Loading…
Reference in a new issue