Changeset d0975634cee1…
Parent d93f0b0c60ce…
by Na'Tosha Bard <natosha@unity3d.com>
Changes to one file · Browse files at d0975634cee1 Showing diff from parent d93f0b0c60ce Diff from another changeset...
@@ -225,6 +225,10 @@ if pats:
# patterns supplied: search .hgbfiles relative to current dir
cwd = repo.getcwd()
+ if (os.path.isabs(cwd)):
+ # This means that the cwd is outside the repo.
+ # Pass repo-relative path instead.
+ cwd = ''
pats = [os.path.join(standin_dir, cwd, pat) for pat in pats]
elif os.path.isdir(standin_dir):
# no patterns: relative to repo root
|
Loading...