-
Georges Racinet authored
Higher level methods in GitLab expect Git::Index::IndexError, so we have to give them some. For instance, the API will catch these and provide appropriate 400 errors from the message. We decided to settle for the same messages as provided by Gitlab (actually by Gitaly through the `user_commit_files` request of the OperationService), even though some are a bit ambiguous, especially in the case of renames. This doesn't change the fact that the hg calls could still fail, even though many cases are covered by the a priori checks. We'll still raise HgError for unexpected failures.
6fc21d2a7dcb