avoid build warning on windows
This commit is contained in:
parent
cb6cb61ca1
commit
e900e3caf3
1 changed files with 2 additions and 1 deletions
|
@ -259,12 +259,13 @@ fixLink key file = do
|
||||||
- to the other location.
|
- to the other location.
|
||||||
-}
|
-}
|
||||||
fixObjectLocation :: Key -> Annex Bool
|
fixObjectLocation :: Key -> Annex Bool
|
||||||
fixObjectLocation key = do
|
|
||||||
#ifdef mingw32_HOST_OS
|
#ifdef mingw32_HOST_OS
|
||||||
|
fixObjectLocation _key = do
|
||||||
-- Windows does not allow locked files to be renamed, but annex
|
-- Windows does not allow locked files to be renamed, but annex
|
||||||
-- links are also not used on Windows.
|
-- links are also not used on Windows.
|
||||||
return True
|
return True
|
||||||
#else
|
#else
|
||||||
|
fixObjectLocation key = do
|
||||||
loc <- calcRepo (gitAnnexLocation key)
|
loc <- calcRepo (gitAnnexLocation key)
|
||||||
idealloc <- calcRepo (gitAnnexLocation' (const (pure True)) key)
|
idealloc <- calcRepo (gitAnnexLocation' (const (pure True)) key)
|
||||||
if loc == idealloc
|
if loc == idealloc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue