summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2013-06-04 14:49:49 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2013-06-04 14:49:49 +0100
commit10c24e03326ea7d69485af0271c8be77033abf08 (patch)
tree8c272a69b4676a309c7383d19cf2f1b9b8feb187
parente46c7c6481046d271b060f4920bd2f1c0bf1f6c4 (diff)
downloadgitano-10c24e03326ea7d69485af0271c8be77033abf08.tar.bz2
Fix hiccough in error path
-rw-r--r--lib/gitano/copycommand.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitano/copycommand.lua b/lib/gitano/copycommand.lua
index 6de825a..4f90c99 100644
--- a/lib/gitano/copycommand.lua
+++ b/lib/gitano/copycommand.lua
@@ -24,7 +24,8 @@ local function builtin_copy_validate(config, srcrepo, cmdline)
end
-- Check if source repository is nascent
if srcrepo.is_nascent then
- return "deny", "Cannot copy a repository which does not exist"
+ log.error("Cannot copy a repository which does not exist")
+ return false
end
-- Create the target repository object
local tgtrepo, msg = repository.find(config, cmdline[3])