aboutsummaryrefslogtreecommitdiff
path: root/Command/Describe.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Describe.hs')
-rw-r--r--Command/Describe.hs10
1 files changed, 3 insertions, 7 deletions
diff --git a/Command/Describe.hs b/Command/Describe.hs
index 882a0e1bb..1cc81bcbd 100644
--- a/Command/Describe.hs
+++ b/Command/Describe.hs
@@ -20,15 +20,11 @@ seek :: [CommandSeek]
seek = [withWords start]
start :: [String] -> CommandStart
-start ws = do
- let (name, description) =
- case ws of
- (n:d) -> (n,unwords d)
- _ -> error "Specify a repository and a description."
-
+start (name:description) = do
showStart "describe" name
u <- Remote.nameToUUID name
- next $ perform u description
+ next $ perform u $ unwords description
+start _ = do error "Specify a repository and a description."
perform :: UUID -> String -> CommandPerform
perform u description = do