1. 03 Mar, 2017 1 commit
  2. 23 Feb, 2017 1 commit
  3. 14 Feb, 2017 1 commit
  4. 27 Oct, 2016 1 commit
  5. 30 Aug, 2016 1 commit
  6. 11 Aug, 2016 1 commit
  7. 25 Jul, 2016 1 commit
    • Stan Hu's avatar
      Fix backup restore · 6610ba48ced6
      Stan Hu authored
      Set permissions of backup dir to g+s
      
      Closes #20188
      6610ba48ced6
  8. 30 Jun, 2016 1 commit
  9. 03 Jun, 2016 1 commit
    • Connor Shea's avatar
      Replace colorize gem with rainbow. · 38967d692e55
      Connor Shea authored
      Colorize is a gem licensed under the GPLv2, so we can’t use it in GitLab without relicensing GitLab under the terms of the GPL. Rainbow is licensed under the MIT license and does the exact same thing as Colorize, so Rainbow was added in place of Colorize.
      
      The syntax is slightly different for Rainbow vs. Colorize, and was updated in accordance.
      
      The gem is still a dependency of Spinach, so it’s included in the development/test environments, but won’t be packaged with the actual product, and therefore doesn’t require we relicense the product.
      
      An attempt at relicensing Colorize was made, but didn’t succeed as the library owner never responded.
      
      Rainbow library: https://github.com/sickill/rainbow
      Relevant issue regarding licensing in GitLab's gems: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3775
      38967d692e55
  10. 03 Nov, 2015 1 commit
  11. 30 Jul, 2015 1 commit
  12. 29 Jul, 2015 1 commit
  13. 19 Mar, 2015 1 commit
  14. 30 Nov, 2014 1 commit
    • Achilleas Pipinellis's avatar
      Properly fix wiki restore. · a54b3545d058
      Achilleas Pipinellis authored
      ProjectWiki.new() creates a new wiki git repository, so any tries
      to bare clone a bundle fail. With this patch we remove the newly
      created wiki.git before restoring from the backup bundle.
      a54b3545d058
  15. 29 Nov, 2014 1 commit
  16. 20 Nov, 2014 1 commit
  17. 13 Nov, 2014 1 commit
    • Dimitry Andric's avatar
      Correctly restore empty repositories. · 87c5f015b93e
      Dimitry Andric authored
      If a project is being restored, but there is no bundle file, the project was
      empty when it was backed up.  In this case, just use git init --base to create a
      new bare repository.
      87c5f015b93e
  18. 05 Nov, 2014 1 commit
  19. 20 Oct, 2014 2 commits
    • Jacob Vosmaer's avatar
      Ask the wiki repo, not Gollum, if it's empty · 725464c43610
      Jacob Vosmaer authored
      We need to skip empty repositories when creating a backup. Before this
      change, we were asking gollum-lib if the wiki contains any _pages_. Now
      we ask gitlab_git if the repository contains _files_. This should
      resolve gollum_lib Grit timeouts in the backup script.
      725464c43610
    • Jacob Vosmaer's avatar
      Ask the wiki repo, not Gollum, if it's empty · 668cd78ca7a8
      Jacob Vosmaer authored
      We need to skip empty repositories when creating a backup. Before this
      change, we were asking gollum-lib if the wiki contains any _pages_. Now
      we ask gitlab_git if the repository contains _files_. This should
      resolve gollum_lib Grit timeouts in the backup script.
      668cd78ca7a8
  20. 01 Oct, 2014 1 commit
  21. 08 Sep, 2014 1 commit
  22. 08 May, 2014 1 commit
  23. 09 Apr, 2014 1 commit
  24. 26 Feb, 2014 1 commit
    • Jacob Vosmaer's avatar
      Use gitlab_shell.path to invoke rewrite-hooks.sh · 0999134f8287
      Jacob Vosmaer authored
      The backup restore code for repositories was assuming that gitlab-shell
      is installed in /home/git/gitlab-shell. This commit changes that to use
      the configuration setting from gitlab.yml that specifies the path where
      gitlab-shell is installed.
      0999134f8287
  25. 06 Nov, 2013 1 commit
  26. 05 Nov, 2013 1 commit
  27. 04 Nov, 2013 1 commit
    • Nigel Kukard's avatar
      More escaping · fc8f8573b782
      Nigel Kukard authored
      
      
      - Database name may contain characters which are not shell friendly
      - Database password could contain the same
      - While we at it there is no harm in escaping generated paths too
      - Refactored 2-line system(command)
      Signed-off-by: default avatarNigel Kukard <nkukard@lbsd.net>
      fc8f8573b782
  28. 10 Oct, 2013 1 commit
  29. 30 May, 2013 1 commit
    • Angus MacArthur's avatar
      fixes for gitlab restore with non-standard backup and repo dirs · 5a275739fa3c
      Angus MacArthur authored
      These fixes will allow a restore of gitlab when the backups and
      repositories directories are in non-standard locations (ie sub-dirs
      of gitlabhq).  Also allows the restore to be run from script
      overriding the need of a user to confirm the rebuild of the
      authorized_keys file.
      5a275739fa3c
  30. 10 Apr, 2013 1 commit
  31. 05 Apr, 2013 3 commits