summaryrefslogtreecommitdiff
path: root/git-annex-shell.hs
diff options
context:
space:
mode:
Diffstat (limited to 'git-annex-shell.hs')
-rw-r--r--git-annex-shell.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-annex-shell.hs b/git-annex-shell.hs
index 79b5da69a..a4d8dd65b 100644
--- a/git-annex-shell.hs
+++ b/git-annex-shell.hs
@@ -37,7 +37,7 @@ options = uuid : commonOptions
where
uuid = Option [] ["uuid"] (ReqArg check paramUUID) "repository uuid"
check expected = do
- u <- getUUID =<< gitRepo
+ u <- getUUID
when (u /= expected) $ error $
"expected repository UUID " ++ expected
++ " but found UUID " ++ u