diff options
author | Stan Hu <stanhu@gmail.com> | 2015-07-23 23:52:21 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-07-29 10:49:13 -0700 |
commit | 3e9b612306e026e7a91bd1bc5e52cc6f0c9c48de (patch) | |
tree | dcf30e087f8f82ff3368d5ca3322ffc7b7bb625b /app/models | |
parent | 82f0d3e655c48fc67adea88af681d0b5d81810de (diff) | |
download | gitlab-ce-3e9b612306e026e7a91bd1bc5e52cc6f0c9c48de.tar.gz |
Check that project was actually created rather than just validated in import:repos task
Add gitlab-shell to error message to give user a clue that something may be wrong there.
Ran into this in #2082. User was told that repositories were created when they were
not due to hooks symlink being wrong.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index ff372ea9aa5..1800c3a7e01 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -705,14 +705,14 @@ class Project < ActiveRecord::Base ensure_satellite_exists true else - errors.add(:base, 'Failed to fork repository') + errors.add(:base, 'Failed to fork repository via gitlab-shell') false end else if gitlab_shell.add_repository(path_with_namespace) true else - errors.add(:base, 'Failed to create repository') + errors.add(:base, 'Failed to create repository via gitlab-shell') false end end |