• Bob Van Landuyt's avatar
    Spec the committer ChangeAccess check for merge requests · 3d337936
    Bob Van Landuyt authored
    This tests the pre-receive hook that will be triggered when merging a
    merge request by bringing the repository in a certain state.
    
    For an FF merge, the `newrev` is going to be the last commit of the
    merge request, so we can just pass the HEAD-sha of a branch that
    applies cleanly.
    
    For a normal merge, we need to create the merge commit, but not attach
    it to any ref.
    3d337936
change_access_spec.rb 20.7 KB