Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Unified Diff: gclient_scm.py

Issue 495003: gclient: Don't change directories when checking git version. (Closed)
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index c3cae03124c9aae47cfaa2d73c5456f6d09ee977..8c7e70f2064b1c506eb22c565b84e0a74686410f 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -193,7 +193,7 @@ class GitWrapper(SCMWrapper, scm.GIT):
return int(val)
else:
return 0
- version = self._Run(['--version']).split()[-1]
+ version = self._Run(['--version'], cwd='.').split()[-1]
version_list = map(only_int, version.split('.'))
min_version_list = map(int, min_version.split('.'))
for min_ver in min_version_list:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698