diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-14 16:30:48 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-14 16:30:48 +0300 |
commit | e7c930a55b9832a767bfb1a5e2a8add8f9e719f9 (patch) | |
tree | 93f264dce4f668f21a9155229ab640f25282e810 /app/contexts/projects/create_context.rb | |
parent | da98cebc5bd72f5cfc25c50fcaecbe952db5f3ed (diff) | |
download | gitlab-ce-e7c930a55b9832a767bfb1a5e2a8add8f9e719f9.tar.gz |
Add imported boolean to project. Prevent shell from creating repo after it was imported
Diffstat (limited to 'app/contexts/projects/create_context.rb')
-rw-r--r-- | app/contexts/projects/create_context.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/contexts/projects/create_context.rb b/app/contexts/projects/create_context.rb index 2922564ba20..d3b8dee3948 100644 --- a/app/contexts/projects/create_context.rb +++ b/app/contexts/projects/create_context.rb @@ -51,6 +51,7 @@ module Projects if shell.import_repository(@project.path_with_namespace, @project.import_url) # We should create satellite for imported repo @project.satellite.create unless @project.satellite.exists? + @project.imported = true true else @project.errors.add(:import_url, 'cannot clone repo') |