Allow find --branch to be used in a bare repository, the same as the deprecated findref can be
This will allow later fully deprecating and removing findref. Sponsored-by: Erik Bjäreholt on Patreon
This commit is contained in:
parent
d8f94389e1
commit
570b1aa6a1
3 changed files with 9 additions and 2 deletions
|
@ -21,7 +21,7 @@ import qualified Utility.Format
|
|||
import Utility.DataUnits
|
||||
|
||||
cmd :: Command
|
||||
cmd = notBareRepo $ withAnnexOptions [annexedMatchingOptions] $ mkCommand $
|
||||
cmd = withAnnexOptions [annexedMatchingOptions] $ mkCommand $
|
||||
command "find" SectionQuery "lists available files"
|
||||
paramPaths (seek <$$> optParser)
|
||||
|
||||
|
@ -55,6 +55,8 @@ parseFormatOption =
|
|||
|
||||
seek :: FindOptions -> CommandSeek
|
||||
seek o = do
|
||||
unless (isJust (keyOptions o)) $
|
||||
checkNotBareRepo
|
||||
islimited <- limited
|
||||
let seeker = AnnexedFileSeeker
|
||||
{ startAction = start o
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue