From e43f7a080838c87df1e63b5a58875561157a5a85 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 11 Dec 2015 13:56:12 -0400 Subject: only make 1 hardlink max between pointer file and annex object If multiple files point to the same annex object, the user may want to modify them independently, so don't use a hard link. Also, check diskreserve when copying. --- Command/Smudge.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Command/Smudge.hs') diff --git a/Command/Smudge.hs b/Command/Smudge.hs index cd33b193e..1353c2791 100644 --- a/Command/Smudge.hs +++ b/Command/Smudge.hs @@ -86,7 +86,7 @@ ingest file = do } k <- fst . fromMaybe (error "failed to generate a key") <$> genKey source backend - -- Hard link (or copy) file content to annex + -- Hard link (or copy) file content to annex object -- to prevent it from being lost when git checks out -- a branch not containing this file. r <- linkAnnex k file -- cgit v1.2.3