prevent trust commands from trying to do things in a bare repo

Since they need to stage changes, they would actually, if allowed to run,
succeed, but wipe out existing trust.log content.
This commit is contained in:
Joey Hess 2011-03-03 16:22:53 -04:00
parent a9d0538da5
commit b88637fff1
5 changed files with 11 additions and 7 deletions

View file

@ -22,7 +22,7 @@ seek :: [CommandSeek]
seek = [withString start]
start :: CommandStartString
start name = do
start name = notBareRepo $ do
showStart "untrust" name
Remotes.readConfigs
r <- Remotes.byName name