fix
This commit is contained in:
parent
81c4259a0d
commit
c116383b5d
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,9 @@ gitCommandLine params Repo { location = l@(Local _ _ ) } = setdir : settree ++ p
|
||||||
Just t -> [Param $ "--work-tree=" ++ gitpath t]
|
Just t -> [Param $ "--work-tree=" ++ gitpath t]
|
||||||
#ifdef mingw32_HOST_OS
|
#ifdef mingw32_HOST_OS
|
||||||
-- despite running on windows, msysgit wants a unix-formatted path
|
-- despite running on windows, msysgit wants a unix-formatted path
|
||||||
gitpath = dropDrive . toInternalGitPath
|
gitpath s
|
||||||
|
| isAbsulute s = "/" ++ dropDrive (toInternalGitPath s)
|
||||||
|
| otherwise = s
|
||||||
#else
|
#else
|
||||||
gitpath = id
|
gitpath = id
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue