Allow linking a directory in windows based bash environments
To create a directory symlink in windows 10 git bash, the target_is_directory must be set to true
This commit is contained in:
parent
5294594f5a
commit
94c74c1451
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ class Link(dotbot.Plugin):
|
|||
# destination directory
|
||||
elif not self._exists(link_name) and (ignore_missing or self._exists(absolute_source)):
|
||||
try:
|
||||
os.symlink(source, destination)
|
||||
os.symlink(source, destination, os.path.isdir(source))
|
||||
except OSError:
|
||||
self._log.warning('Linking failed %s -> %s' % (link_name, source))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue