finish fix for gitAnnexLink on windows

dropDrive needed since if splitPath splits out the drives, they would
appear different.
This commit is contained in:
Joey Hess 2017-10-26 12:01:16 -04:00
parent 932d4211a4
commit c3449ff91d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -143,7 +143,7 @@ relPathDirToFileAbs from to
where where
pfrom = sp from pfrom = sp from
pto = sp to pto = sp to
sp = map dropTrailingPathSeparator . splitPath sp = map dropTrailingPathSeparator . splitPath . dropDrive
common = map fst $ takeWhile same $ zip pfrom pto common = map fst $ takeWhile same $ zip pfrom pto
same (c,d) = c == d same (c,d) = c == d
uncommon = drop numcommon pto uncommon = drop numcommon pto