From 94c74c1451d9a4612e52c0f322b54d870019e35f Mon Sep 17 00:00:00 2001 From: Dan Chianucci Date: Sun, 23 Aug 2020 10:54:30 -0400 Subject: [PATCH] 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 --- dotbot/plugins/link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotbot/plugins/link.py b/dotbot/plugins/link.py index 6f2b562..70fc222 100644 --- a/dotbot/plugins/link.py +++ b/dotbot/plugins/link.py @@ -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: