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:
parent
a9d0538da5
commit
b88637fff1
5 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue