mirror of
1
0
Fork 0

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:
Dan Chianucci 2020-08-23 10:54:30 -04:00 committed by GitHub
parent 5294594f5a
commit 94c74c1451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: