Log if satellite creation failed

This commit is contained in:
Dmitriy Zaporozhets 2012-12-22 23:45:22 +02:00
parent 5d1044c335
commit 328e0d80ca

View file

@ -18,7 +18,13 @@ module Gitlab
end end
def create def create
`git clone #{project.url_to_repo} #{path}` create_cmd = "git clone #{project.url_to_repo} #{path}"
if system(create_cmd)
true
else
Gitlab::GitLogger.error("Failed to create satellite for #{project.name_with_namespace}")
false
end
end end
def exists? def exists?