summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Annex/Content.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/Content.hs b/Annex/Content.hs
index 6c03e334c..9d3732d0b 100644
--- a/Annex/Content.hs
+++ b/Annex/Content.hs
@@ -586,8 +586,8 @@ linkOrCopy key src dest = catchBoolIO $
)
where
hardlink = do
-#ifndef mingw32_HOST_OS
s <- getstat
+#ifndef mingw32_HOST_OS
if linkCount s > 1
then copy s
else liftIO (createLink src dest >> return True)