Handle permissions in a git repository.