Revert "Moved some git specific logic out of controller"

This reverts commit d317ab3e5f8d88a3e80d7f7075403b7df926309d.

Conflicts:
	app/controllers/submissions_controller.rb