fix a case where file tracked by git unexpectedly becomes annex pointer file
smudge: When annex.largefiles=anything, files that were already stored in git, and have not been modified could sometimes be converted to being stored in the annex. Changes in 7.20191024 made this more of a problem. This case is now detected and prevented.
This commit is contained in:
parent
b9481c6ba0
commit
ea3cb7d277
10 changed files with 90 additions and 34 deletions
|
@ -23,12 +23,12 @@ import Data.ByteString.Builder
|
|||
|
||||
type HashObjectHandle = CoProcess.CoProcessHandle
|
||||
|
||||
hashObjectStart :: Repo -> IO HashObjectHandle
|
||||
hashObjectStart = gitCoProcessStart True
|
||||
[ Param "hash-object"
|
||||
, Param "-w"
|
||||
, Param "--stdin-paths"
|
||||
, Param "--no-filters"
|
||||
hashObjectStart :: Bool -> Repo -> IO HashObjectHandle
|
||||
hashObjectStart writeobject = gitCoProcessStart True $ catMaybes
|
||||
[ Just (Param "hash-object")
|
||||
, if writeobject then Just (Param "-w") else Nothing
|
||||
, Just (Param "--stdin-paths")
|
||||
, Just (Param "--no-filters")
|
||||
]
|
||||
|
||||
hashObjectStop :: HashObjectHandle -> IO ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue