1. 04 5月, 2016 2 次提交
  2. 29 4月, 2016 2 次提交
  3. 27 4月, 2016 1 次提交
  4. 25 4月, 2016 1 次提交
  5. 18 4月, 2016 3 次提交
  6. 15 4月, 2016 1 次提交
  7. 13 4月, 2016 1 次提交
    • S
      Fix repository cache invalidation issue when project is recreated with an empty repo · 2ce7559d
      Stan Hu 提交于
      To reproduce:
      
      1. Create a project with some content
      2. Rename the project
      3. Create a new project with the same name.
      4. Boom - 404.
      
      After step 2, the branch and tag counts were not being cleared. This would
      cause `repository.has_visible_content?` to erroneously return `true`
      for the newly-created project.
      
      Closes #13384
      2ce7559d
  8. 10 4月, 2016 1 次提交
  9. 07 4月, 2016 1 次提交
  10. 05 4月, 2016 1 次提交
  11. 02 4月, 2016 1 次提交
  12. 27 3月, 2016 1 次提交
  13. 25 3月, 2016 2 次提交
  14. 24 3月, 2016 1 次提交
  15. 20 3月, 2016 1 次提交
    • Y
      Cache output of Repository#exists? · 68a4c98f
      Yorick Peterse 提交于
      This caches the output of Repository#exists? in Redis while making sure
      it's flushed properly when creating new repositories, deleting them,
      etc.
      
      For the ProjectWiki tests to work I had to make ProjectWiki#create_repo!
      public as testing private methods in RSpec is a bit of a pain.
      68a4c98f
  16. 18 3月, 2016 2 次提交
    • Y
      Added tests for Repository#build_cache · dd4b7897
      Yorick Peterse 提交于
      dd4b7897
    • Y
      Cache project avatars stored in Git · cd05d3f7
      Yorick Peterse 提交于
      The avatar logic has been moved from Project to Repository as this makes
      caching easier. The logic itself in turn has been changed so that the
      logo file names are cached in Redis. This cache is flushed upon pushing
      a commit but _only_ if:
      
      1. The commit was pushed to the default branch
      2. The commit actually changes any of the logo files
      
      If no branch or commit is given the cache is flushed anyway, this
      ensures that calling Repository#expire_cache without any arguments still
      flushes the avatar cache (e.g. this is used when removing a project).
      
      Fixes gitlab-org/gitlab-ce#14363
      cd05d3f7
  17. 17 3月, 2016 1 次提交
  18. 09 3月, 2016 5 次提交
  19. 08 3月, 2016 2 次提交
  20. 02 3月, 2016 1 次提交
  21. 25 2月, 2016 1 次提交
  22. 21 2月, 2016 1 次提交
    • Y
      Flush emptiness caches whenever needed · e0cb3212
      Yorick Peterse 提交于
      This ensures that the emptiness cache (used for Repository#empty? and
      Repository#has_visible_content?) is flushed after comitting changes
      (using the web editor, API or Git) for new repositories. Once a
      repository is no longer empty there's no need to explicitly flush the
      cache for Repository#empty?. The cache for
      Repository#has_visible_content? in turn is already flushed whenever
      needed.
      
      Fixes gitlab-org/gitlab-ce#13387
      e0cb3212
  23. 20 2月, 2016 3 次提交
  24. 18 2月, 2016 3 次提交
    • Y
      Handle raw_repository returning nil in exists? · 5b6d347f
      Yorick Peterse 提交于
      If path_with_namespace is nil Repository#raw_repository will also return
      nil. Apparently code out there creates a Repository instance without a
      namespace path. Right.
      5b6d347f
    • Y
      Added specs for Repository#exists? · 8a7aad77
      Yorick Peterse 提交于
      8a7aad77
    • Y
      Only set autocrlf when creating/updating files · c475b171
      Yorick Peterse 提交于
      Setting the "autocrlf" Git option is an overkill since it's rarely
      actually needed. More importantly, it has quite the impact on
      performance (see gitlab-org/gitlab-ce#13457 for more information).
      
      By setting "autocrlf" when creating or updating files we guarantee the
      option is always set properly when we actually need it _without_
      introducing overhead for requests that have nothing to do with this
      option.
      
      Fixes gitlab-org/gitlab-ce#13457
      c475b171
  25. 17 2月, 2016 1 次提交