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

Unified Diff: tools/git-sync-deps

Issue 258053005: git-sync-deps - handle symbolic links to directories (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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: tools/git-sync-deps
diff --git a/tools/git-sync-deps b/tools/git-sync-deps
index 8edc0c36c71ea9dfb85a90f11d1ad374235e2ec7..ee37e631f73b6b7bd42e6b96727870fe194dcc9f 100755
--- a/tools/git-sync-deps
+++ b/tools/git-sync-deps
@@ -76,7 +76,7 @@ def is_git_toplevel(git, directory):
try:
toplevel = subprocess.check_output(
[git, 'rev-parse', '--show-toplevel'], cwd=directory).strip()
- return os.path.abspath(directory) == os.path.abspath(toplevel)
+ return os.path.realpath(directory) == os.path.realpath(toplevel)
except subprocess.CalledProcessError:
return False
« 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