Cleans out Gitaly paths from the errros, where they may occur. The
shared path isn't excluded, but that's done by the client, which only
has the required data to do so.
Part of: #1235 (closed)
This will create a new commit in order to revert the existing changes.