diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -382,7 +382,12 @@ class _LinkFile(object): | |||
382 | Handles wild cards on the src linking all of the files in the source in to | 382 | Handles wild cards on the src linking all of the files in the source in to |
383 | the destination directory. | 383 | the destination directory. |
384 | """ | 384 | """ |
385 | src = _SafeExpandPath(self.git_worktree, self.src) | 385 | # Some people use src="." to create stable links to projects. Lets allow |
386 | # that but reject all other uses of "." to keep things simple. | ||
387 | if self.src == '.': | ||
388 | src = self.git_worktree | ||
389 | else: | ||
390 | src = _SafeExpandPath(self.git_worktree, self.src) | ||
386 | 391 | ||
387 | if os.path.exists(src): | 392 | if os.path.exists(src): |
388 | # Entity exists so just a simple one to one link operation. | 393 | # Entity exists so just a simple one to one link operation. |