summaryrefslogtreecommitdiffstats
path: root/git_config.py
diff options
context:
space:
mode:
authorRenaud Paquay <rpaquay@google.com>2018-09-27 10:46:58 -0700
committerRenaud Paquay <rpaquay@google.com>2018-10-22 08:16:35 -0700
commitbed8b62345e484b27e048e8f21280c5611f795df (patch)
tree4efc8203f0a092428377ebc3e3494f01fdb9b90c /git_config.py
parentb3133a31642ea88f0e4fe9c382411d43278dc9e4 (diff)
downloadgit-repo-bed8b62345e484b27e048e8f21280c5611f795df.tar.gz
Add support for long paths
* Add more file i/o wrappers in platform_utils to allow using long paths (length > MAX_PATH) on Windows. * Paths using the long path syntax ("\\?\" prefix) should never escape the platform_utils API surface area, so that this specific syntax is not visible to the rest of the repo code base. * Forward many calls from os.xxx to platform_utils.xxx in various place to ensure long paths support, specifically when repo decides to delete obsolete directories. * There are more places that need to be converted to support long paths, this commit is an initial effort to unblock a few common use cases. * Also, fix remove function to handle directory symlinks Change-Id: If82ccc408e516e96ff7260be25f8fd2fe3f9571a
Diffstat (limited to 'git_config.py')
-rw-r--r--git_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_config.py b/git_config.py
index 70b22ce1..aac08855 100644
--- a/git_config.py
+++ b/git_config.py
@@ -503,7 +503,7 @@ def close_ssh():
503 d = ssh_sock(create=False) 503 d = ssh_sock(create=False)
504 if d: 504 if d:
505 try: 505 try:
506 os.rmdir(os.path.dirname(d)) 506 platform_utils.rmdir(os.path.dirname(d))
507 except OSError: 507 except OSError:
508 pass 508 pass
509 509