1. 27 7月, 2016 37 次提交
  2. 26 7月, 2016 3 次提交
    • S
      Show release notes in tag list · e44bbcb9
      Sean McGivern 提交于
      A release's tag reference is just the name of the tag, not the entire
      tag object.
      
      This also fixes the tags index if a tag's message contains non-UTF8 byte
      sequences.
      e44bbcb9
    • S
      Merge branch '20156-rescue-reference-create-due-to-file-lock-exists' into 'master' · 8a95f1f3
      Stan Hu 提交于
      Rescue Rugged::OSError (lock exists) when creating references.
      
      ## What does this MR do?
      
      Rescue an exception on concurrent scenarios. I was able to create a spec for this, because if you create the lock file before trying to create the reference the reference is created without a problem and the lock file is removed. So IMHO there is a race condition where more than one process is trying to create the same reference at the same time raising the exception, so I just added the patch without specs.
      
      ```ruby
          it "attempting to call keep_around when exists a lock does not fail" do
            ref = repository.send(:keep_around_ref_name, sample_commit.id)
            path = File.join(repository.path, ref)
            lock_path = "#{path}.lock"
      
            FileUtils.mkdir_p(path)
            File.open(lock_path, 'w') { |f| f.write('') }
      
            begin
              # No exception is raised because the lock file is removed at some point in the process
              repository.keep_around(sample_commit.id)
            ensure
              File.delete(path)
              File.delete(lock_path)
            end
          end
      ```
      
      ## Why was this MR needed?
      
      ## What are the relevant issue numbers?
      
      Closes #20156
      
      ## Screenshots (if relevant)
      
      ## Does this MR meet the acceptance criteria?
      
      - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
      - ~~[ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~
      - ~~[ ] API support added~~
      - Tests
        - [ ] Added for this feature/bug
        - [ ] All builds are passing
      - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
      - [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
      - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)
      
      
      See merge request !5497
      8a95f1f3
    • F
      Merge branch '20139-branch-icon' into 'master' · 9cf1bf64
      Fatih Acet 提交于
      Add branch or tag icon to ref in builds page
      
      ## What does this MR do?
      Add branch or tag icon to ref in builds page
      
      ## Why was this MR needed?
      It's currently missing but should be there
      
      ## What are the relevant issue numbers?
      Closes #20139 
      
      ## Screenshots (if relevant)
      <img src="/uploads/fb5c9a285a1ce95c0aa8dfa5e32c5d7d/Screen_Shot_2016-07-22_at_9.14.39_AM.png" width="400px">
      
      
      See merge request !5434
      9cf1bf64