diff options
author | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2015-10-21 15:15:54 +0200 |
---|---|---|
committer | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2015-10-21 15:15:54 +0200 |
commit | 4f0a38f1a833cab8c83e77a6c5d323057883188d (patch) | |
tree | 35d539461f4c8f11a48872d9b625e5b0aa9c11ae /lib | |
parent | 323b6eb19630ddfd73e98e39cd91758df615be71 (diff) | |
download | gitlab-ce-4f0a38f1a833cab8c83e77a6c5d323057883188d.tar.gz |
Added housekeeping for git repositories
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/backend/shell.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gitlab/backend/shell.rb b/lib/gitlab/backend/shell.rb index 01b8bda05c6..59f7a45b791 100644 --- a/lib/gitlab/backend/shell.rb +++ b/lib/gitlab/backend/shell.rb @@ -149,6 +149,18 @@ module Gitlab "#{path}.git", tag_name]) end + # Gc repository + # + # path - project path with namespace + # + # Ex. + # gc("gitlab/gitlab-ci") + # + def gc(path) + Gitlab::Utils.system_silent([gitlab_shell_projects_path, 'gc', + "#{path}.git"]) + end + # Add new key to gitlab-shell # # Ex. |