Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ensure_dependencies.py

Issue 29329302: Issue 2972 - Properly generate Git ignore paths for dependencies (Closed)
Patch Set: Created Oct. 20, 2015, 9:07 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
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: ensure_dependencies.py
diff --git a/ensure_dependencies.py b/ensure_dependencies.py
index 1b68854fee4ce72198c6ebc5ee0403135e68098e..3424cb5efbb5109c9c21f99f7a33e11882010de3 100755
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -126,7 +126,7 @@ class Git():
subprocess.check_call(["git", "checkout", "--quiet", rev], cwd=repo)
def ignore(self, target, repo):
- module = os.path.relpath(target, repo)
+ module = os.path.join(os.path.sep, os.path.relpath(target, repo))
exclude_file = os.path.join(repo, ".git", "info", "exclude")
_ensure_line_exists(exclude_file, module)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld