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

Unified Diff: git_common.py

Issue 1387223002: Attempt at making git-drover work on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: don't monkey patch Created 5 years, 2 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 | git_drover.py » ('j') | 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 5a01c835a96b67929c55cbca573a1804fd648d11..d40514462c98775d3d5519a277bedfb2915fba0d 100644
--- a/git_common.py
+++ b/git_common.py
@@ -821,10 +821,12 @@ def get_branches_info(include_tracking_status):
def make_workdir_common(repository, new_workdir, files_to_symlink,
- files_to_copy):
+ files_to_copy, symlink=None):
+ if not symlink:
+ symlink = os.symlink
os.makedirs(new_workdir)
for entry in files_to_symlink:
- clone_file(repository, new_workdir, entry, os.symlink)
+ clone_file(repository, new_workdir, entry, symlink)
for entry in files_to_copy:
clone_file(repository, new_workdir, entry, shutil.copy)
« no previous file with comments | « no previous file | git_drover.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698