gitlab-org--gitlab-foss/lib/gitlab
Dmitriy Zaporozhets c87c1cb3b9 Merge branch 'api-empty-commit' into 'master'
Improve error messages when file editing fails

Give more specific errors in API responses and web UI flash messages when a file update fails.  See #1479.

Instead of returning false from `Gitlab::Satellite::Files::EditFileAction#commit!` when a `Grit::Git::CommandFailed` error is raised, now `#commit!` raises a different error depending on whether the failure happened during checkout, commit, or push.

@dzaporozhets Please let me know if you want to change the HTTP status codes or the error messages in `Files::UpdateService`

cc @sytse

See merge request !1569
2015-02-24 02:17:23 +00:00
..
backend Fix git-over-http 2015-02-23 10:05:18 -08:00
diff Fix commit comments on first line of diff not rendering in Merge Request Discussion view. 2015-02-20 10:23:34 +01:00
github_import GitHub importer refactoring 2015-02-05 21:48:21 -08:00
gitlab_import gitlab.com importer: refactorig 2015-02-05 17:03:43 -08:00
gitorious_import Add gitorious.org importer 2015-02-20 17:42:58 +00:00
graphs
ldap Rubocop: Style/AlignHash enabled 2015-02-02 21:15:44 -08:00
middleware Satisfy Rubocop. 2015-02-20 16:04:03 +01:00
oauth Allow users that signed up via OAuth to set their password in order to use Git over HTTP(S). 2015-02-13 14:44:42 +01:00
satellite Improve error messages when file editing fails 2015-02-22 16:01:49 -07:00
sidekiq_middleware Fix typo 2014-12-08 13:39:18 +01:00
access.rb Improve protected branches selectbox options 2015-02-03 18:12:20 -08:00
app_logger.rb
auth.rb
blacklist.rb
closing_issue_extractor.rb Allow commit messages to close several issues at once (thanks @123Haynes 2015-01-20 10:45:48 +01:00
commits_calendar.rb Improve contribution calendar on user page 2015-01-29 17:07:44 -08:00
compare_result.rb
config_helper.rb
contributors.rb
current_settings.rb DB performance improvements to GitLab 2015-02-18 00:16:42 -08:00
force_push_check.rb Rubocop: no trailing newlines 2015-02-02 21:53:27 -08:00
git.rb Send checkout sha for web hooks and services 2015-01-15 10:26:33 -08:00
git_access.rb Fix push access check when not signed in. 2015-02-18 21:59:15 +01:00
git_access_status.rb Rubocop enabled for: Use spaces inside hash literal braces 2015-02-02 20:36:54 -08:00
git_access_wiki.rb Git hook messages: wiki access fix 2014-11-24 16:21:35 +02:00
git_logger.rb
git_ref_validator.rb fix system silent call 2014-11-06 13:07:42 +02:00
identifier.rb
import_formatter.rb code folding 2015-02-05 12:50:34 -08:00
inline_diff.rb
issues_labels.rb
logger.rb
markdown.rb Upgrade to Rails 4.1.9 2015-02-14 11:09:23 -07:00
markdown_helper.rb
popen.rb Close standard input in Gitlab::Popen.popen 2015-01-05 11:51:21 +01:00
production_logger.rb
project_search_results.rb
push_data_builder.rb Extend project web hooks with more data 2015-02-20 10:27:37 -08:00
reference_extractor.rb Add ExternalIssue base model to make issue referencing more robust for external issue trackers. 2015-02-11 09:21:57 -08:00
regex.rb Github Importer 2015-01-10 09:51:43 -08:00
search_results.rb
seeder.rb Revert "Create dev fixture projects with fixed visibility" 2014-11-10 16:17:04 +02:00
sidekiq_logger.rb
snippet_search_results.rb
theme.rb Add theme type css class 2014-12-15 13:21:26 -06:00
upgrader.rb Rubocop enabled for: Use spaces inside hash literal braces 2015-02-02 20:36:54 -08:00
url_builder.rb Upgrade to Rails 4.1.9 2015-02-14 11:09:23 -07:00
user_access.rb
utils.rb fix system silent call 2014-11-06 13:07:42 +02:00
version_info.rb
visibility_level.rb