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: Just use + operator Created Oct. 20, 2015, 9:38 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..2065f93d986646aa23ff94ccc82fcedceaf24d22 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.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