summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/project.py b/project.py
index 185507c0..a305d720 100644
--- a/project.py
+++ b/project.py
@@ -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.