Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-25Fix backup restoreStan Hu
Set permissions of backup dir to g+s Closes #20188
2016-06-30Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez
2016-06-03Replace colorize gem with rainbow.Connor Shea
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
2015-11-04Replace all usages of `git` command with configurable binary pathRobert Speicher
Closes #3311
2015-07-30Stricter mkdir's in 'rake gitlab:backup:create'Jacob Vosmaer
2015-07-29Set internal backup directory modes on createJacob Vosmaer
This sidesteps problems with running 'chmod' on some CIFS mounts.
2015-03-19backup repo with tar instead of git bundleValery Sizov
2014-11-30Properly fix wiki restore.Achilleas Pipinellis
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.
2014-11-29Proper wiki restore. Fixes #845Achilleas Pipinellis
2014-11-20Add CRON=1 backup setting for quiet backupsJacob Vosmaer
2014-11-13Correctly restore empty repositories.Dimitry Andric
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.
2014-11-05Factor using Repository#path_to_repoCiro Santilli
2014-10-20Ask the wiki repo, not Gollum, if it's emptyJacob Vosmaer
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.
2014-10-01Fail harder in the backup scriptJacob Vosmaer
This change also shows the output of failed Git commands during the backup.
2014-09-08Use create-hooks instead of rewrite-hooks.shJacob Vosmaer
The rewrite-hooks.sh script is a deprecated wrapper for gitlab-shell's create-hooks script.
2014-05-09Backup wiki repo even if the main repo is emptyJacob Vosmaer
This fixes a bug where wiki repositories for projects with an empty main repository would not get backed up.
2014-04-09Use ProjectWiki instead of GollumWiki in codeDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-26Use gitlab_shell.path to invoke rewrite-hooks.shJacob Vosmaer
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.
2013-11-06Remove Bourne shell from backup codeJacob Vosmaer
2013-11-05Revert "More escaping"Dmitriy Zaporozhets
This reverts commit c46eaca91247ccf8e6fb3b691dad028e1b084ae3.
2013-11-05More escapingNigel Kukard
- 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: Nigel Kukard <nkukard@lbsd.net>
2013-10-10Skip rather than fail empty wikis during backupJacob Vosmaer
2013-05-30fixes for gitlab restore with non-standard backup and repo dirsAngus MacArthur
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.
2013-04-10Run rewrite-hooks after repos restoreDmitriy Zaporozhets
2013-04-05Backup/restore wiki repos tooDmitriy Zaporozhets
2013-04-05move old repositories dir to one with timestampDmitriy Zaporozhets
2013-04-05refactor backup/restoreDmitriy Zaporozhets