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

Unified Diff: gclient-new-workdir.py

Issue 1462553002: Fix gclient-new-workdir.py (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 5 years, 1 month 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-new-workdir.py
diff --git a/gclient-new-workdir.py b/gclient-new-workdir.py
index c469824753ec587771dd1bdf8da1e4dc7aefb67e..5062053256e326e9c06f9ae97bcd1f7b4adb22aa 100755
--- a/gclient-new-workdir.py
+++ b/gclient-new-workdir.py
@@ -75,8 +75,7 @@ def main():
print('Creating: %s' % workdir)
git_common.make_workdir(os.path.join(root, '.git'),
os.path.join(workdir, '.git'))
- subprocess.check_call(['git', 'checkout', '-f'],
- cwd=new_workdir.rstrip('.git'))
+ subprocess.check_call(['git', 'checkout', '-f'], cwd=workdir)
if __name__ == '__main__':
« 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