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) |