diff options
author | Sytse Sijbrandij <sytses@gmail.com> | 2014-08-06 17:44:57 +0200 |
---|---|---|
committer | Sytse Sijbrandij <sytses@gmail.com> | 2014-08-06 17:44:57 +0200 |
commit | 43f560b17461d035bb5b9cb18a69f68512465453 (patch) | |
tree | 1aaf0a1830363633504b8b76eb41307e224e861f | |
parent | aa5e663f85cd7c29910c37ab9716317961c31e91 (diff) | |
download | gitlab-ce-43f560b17461d035bb5b9cb18a69f68512465453.tar.gz |
Add comments.
-rw-r--r-- | app/services/files/update_service.rb | 2 | ||||
-rw-r--r-- | doc/api/repository_files.md | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/services/files/update_service.rb b/app/services/files/update_service.rb index cbd441122dc..a0f40154db0 100644 --- a/app/services/files/update_service.rb +++ b/app/services/files/update_service.rb @@ -33,7 +33,7 @@ module Files if created_successfully success else - error("Your changes could not be committed. Maybe the file changed, or there was nothing to commit?") + error("Your changes could not be committed. Maybe the file was changed by another process or there was nothing to commit?") end end end diff --git a/doc/api/repository_files.md b/doc/api/repository_files.md index e21e5aa8d72..b53d60bceec 100644 --- a/doc/api/repository_files.md +++ b/doc/api/repository_files.md @@ -87,6 +87,8 @@ error message. Possible causes for a failed commit include: user tried to make an empty commit; - the branch was updated by a Git push while the file edit was in progress. +Currently gitlab-shell has a boolean return code, preventing GitLab from specifying the error. + ## Delete existing file in repository ``` |