unused, dropunused: Now work in bare repositories.
Turned out I had already done all the work needed to support this when unused started checking all branches.
This commit is contained in:
parent
c102e63595
commit
22e9f445ab
5 changed files with 13 additions and 14 deletions
|
@ -35,7 +35,7 @@ withUnusedMaps params = do
|
|||
return $ map (start (unused, unusedbad, unusedtmp)) params
|
||||
|
||||
start :: (UnusedMap, UnusedMap, UnusedMap) -> FilePath -> CommandStart
|
||||
start (unused, unusedbad, unusedtmp) s = notBareRepo $ search
|
||||
start (unused, unusedbad, unusedtmp) s = search
|
||||
[ (unused, perform)
|
||||
, (unusedbad, performOther gitAnnexBadLocation)
|
||||
, (unusedtmp, performOther gitAnnexTmpLocation)
|
||||
|
|
|
@ -36,7 +36,7 @@ seek = [withNothing start]
|
|||
|
||||
{- Finds unused content in the annex. -}
|
||||
start :: CommandStart
|
||||
start = notBareRepo $ do
|
||||
start = do
|
||||
from <- Annex.getState Annex.fromremote
|
||||
let (name, action) = case from of
|
||||
Nothing -> (".", checkUnused)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue