prevent find running in bare repo

This commit is contained in:
Joey Hess 2018-10-16 10:44:09 -04:00
parent 62afca598d
commit 40dba8e933
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 14 additions and 1 deletions

View file

@ -18,7 +18,7 @@ import qualified Utility.Format
import Utility.DataUnits
cmd :: Command
cmd = withGlobalOptions [annexedMatchingOptions] $ mkCommand $
cmd = notBareRepo $ withGlobalOptions [annexedMatchingOptions] $ mkCommand $
command "find" SectionQuery "lists available files"
paramPaths (seek <$$> optParser)