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
|
@ -214,7 +214,7 @@ class Link(dotbot.Plugin):
|
||||||
# destination directory
|
# destination directory
|
||||||
elif not self._exists(link_name) and (ignore_missing or self._exists(absolute_source)):
|
elif not self._exists(link_name) and (ignore_missing or self._exists(absolute_source)):
|
||||||
try:
|
try:
|
||||||
os.symlink(source, destination)
|
os.symlink(source, destination, os.path.isdir(source))
|
||||||
except OSError:
|
except OSError:
|
||||||
self._log.warning('Linking failed %s -> %s' % (link_name, source))
|
self._log.warning('Linking failed %s -> %s' % (link_name, source))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue