reinject: Error out when run on a file that is not annexed
rather than silently skipping it
This commit is contained in:
parent
4bf7940d6b
commit
921753ac44
4 changed files with 14 additions and 1 deletions
|
@ -44,7 +44,9 @@ startSrcDest :: [FilePath] -> CommandStart
|
|||
startSrcDest ps@(src:dest:[])
|
||||
| src == dest = stop
|
||||
| otherwise = notAnnexed src' $
|
||||
ifAnnexed (toRawFilePath dest) go stop
|
||||
ifAnnexed (toRawFilePath dest)
|
||||
go
|
||||
(giveup $ src ++ " is not an annexed file")
|
||||
where
|
||||
src' = toRawFilePath src
|
||||
go key = starting "reinject" ai si $
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue