fromkey: create directory for pointer files too
fromkey creates leading directories for symbolic links. Do the same for pointer files.
This commit is contained in:
parent
5332cf8a80
commit
4450fe3629
1 changed files with 1 additions and 1 deletions
|
@ -106,6 +106,7 @@ perform matcher key file = lookupKeyNotHidden file >>= \case
|
|||
, matchKey = Just key
|
||||
}
|
||||
else keyMatchInfoWithoutContent key file
|
||||
createWorkTreeDirectory (parentDir file)
|
||||
ifM (addUnlocked matcher mi contentpresent)
|
||||
( do
|
||||
stagePointerFile file Nothing =<< hashPointerFile key
|
||||
|
@ -115,7 +116,6 @@ perform matcher key file = lookupKeyNotHidden file >>= \case
|
|||
else writepointer
|
||||
, do
|
||||
link <- calcRepo $ gitAnnexLink file key
|
||||
createWorkTreeDirectory (parentDir file)
|
||||
addAnnexLink link file
|
||||
)
|
||||
next $ return True
|
||||
|
|
Loading…
Add table
Reference in a new issue