1. 25 7月, 2016 2 次提交
  2. 22 7月, 2016 2 次提交
    • S
      Gracefully handle case when keep-around references are corrupted or exist already · 39106483
      Stan Hu 提交于
      We were seeing a number of error messages when attempting to create a keep-around ref:
      
      1. Failed to create locked file `refs/keep-around/XYZ`: File exists
      2. Failed to write reference `refs/keep-around/XYZ`: a reference with that name already exists.
      
      I'm not sure how these happen, but I suspect when multiple workers attempt to write the same
      file we may have an issue. The force parameter should help ensure the file gets created,
      as well as the rescues to prevent 500 Errors.
      
      Rugged/libgit2 unfortunately do not allow you to delete or re-create a reference that has
      been corrupted, even with the force parameter.
      
      Closes #20109
      39106483
    • A
  3. 21 7月, 2016 1 次提交
  4. 20 7月, 2016 4 次提交
  5. 19 7月, 2016 2 次提交
  6. 18 7月, 2016 1 次提交
  7. 14 7月, 2016 1 次提交
  8. 13 7月, 2016 1 次提交
    • T
      Enforce "developers can merge" during `pre-receive`. · 495db096
      Timothy Andrew 提交于
      1. When a merge request is being merged, save the merge commit SHA in
         the `in_progress_merge_commit_sha` database column.
      
      2. The `pre-receive` hook looks for any locked (in progress) merge
         request with `in_progress_merge_commit_sha` matching the `newrev` it
         is passed.
      
      3. If it finds a matching MR, the merge is legitimate.
      
      4. Update `git_access_spec` to test the behaviour we added here. Also
         refactored this spec a bit to make it easier to add more contexts / conditions.
      495db096
  9. 12 7月, 2016 18 次提交
  10. 08 7月, 2016 8 次提交