From 48503d747011befb10f01a1ee4097ddc93103d20 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 25 Oct 2017 19:04:26 -0400 Subject: fix gitAnnexLink to not be absolute on Windows Windows: Fix reversion that caused the path used to link to annexed content include the drive letter and full path, rather than being relative. (`git annex fix` will fix up after this problem). I've not identified the commit that brought the reversion (probably it happened this spring when I was removing MisingH and last touched Utility.Path). Likely commit c88dfda7e03cab4d96417518b6cfcffd54ad8f5d? The problem is that relPathDirToFile got called two paths that had the slashes different ways around. Since takeDrive includes the first slash, this made two paths on the same drive seem different and it bailed. (ifdefs around this to avoid doing extra work on non-windows) This commit was sponsored by Jack Hill on Patreon. --- doc/bugs/windows_annex_link_wrong.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/bugs/windows_annex_link_wrong.mdwn b/doc/bugs/windows_annex_link_wrong.mdwn index 96d1a9673..8a1b29280 100644 --- a/doc/bugs/windows_annex_link_wrong.mdwn +++ b/doc/bugs/windows_annex_link_wrong.mdwn @@ -2,3 +2,5 @@ On windows, the links to .git/annex/objects are no longer relative; include drive letter and full path. This used to not be the case; it must have gotten broken. --[[Joey]] + +> [[fixed|done]] -- cgit v1.2.3