summaryrefslogtreecommitdiff
path: root/lib/gitano/copycommand.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitano/copycommand.lua')
-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])