Commit 328e0d80 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Log if satellite creation failed

parent 5d1044c3
...@@ -18,7 +18,13 @@ module Gitlab ...@@ -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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment