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

Unified Diff: git_common.py

Issue 471413003: Discover git.bat even if git_cl.py is executed using relative path (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 4 months 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: git_common.py
diff --git a/git_common.py b/git_common.py
index 0c537134ffea38674a5db7b61f70b4a3612e224b..4a430c609cbec773edeba785729e30591f857dcc 100644
--- a/git_common.py
+++ b/git_common.py
@@ -30,8 +30,9 @@ import threading
import subprocess2
+ROOT = os.path.abspath(os.path.dirname(__file__))
-GIT_EXE = 'git.bat' if sys.platform.startswith('win') else 'git'
+GIT_EXE = ROOT+'\\git.bat' if sys.platform.startswith('win') else 'git'
TEST_MODE = False
FREEZE = 'FREEZE'
« 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