Vendor CommitterWithHooks and backward compatibility in Gitaly
In order to make the new changes that allow running hooks when editing the Wiki UI available in Gitaly and avoid some deployment problems, we need to make a few changes:
- Vendor CommitterWithHooks (move it to
lib/gitlab/git/
) - Because some old Gitaly clients may talk to new Gitaly servers, add some extra code to check if GlId and username are present. If both present then we run the hooks, otherwise we don't.