summaryrefslogtreecommitdiff
path: root/Command/Semitrust.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-03 16:22:53 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-03 16:22:53 -0400
commitb88637fff10d4d845404882e4ec95cfc071dcac0 (patch)
treec4e2067d6bbe2a8de44c2bc25212473409bb4802 /Command/Semitrust.hs
parenta9d0538da559c29509c50b664e31ea3b23b7bc14 (diff)
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.
Diffstat (limited to 'Command/Semitrust.hs')
-rw-r--r--Command/Semitrust.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Semitrust.hs b/Command/Semitrust.hs
index a91d25359..13c6847e1 100644
--- a/Command/Semitrust.hs
+++ b/Command/Semitrust.hs
@@ -22,7 +22,7 @@ seek :: [CommandSeek]
seek = [withString start]
start :: CommandStartString
-start name = do
+start name = notBareRepo $ do
showStart "semitrust" name
Remotes.readConfigs
r <- Remotes.byName name