diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab_projects.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb index 0497502..461819a 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -250,6 +250,10 @@ class GitlabProjects def gc $logger.info "Running git gc for <#{full_path}>." + unless File.exists?(full_path) + $logger.error "gc failed: destination path <#{full_path}> does not exist." + return false + end cmd = %W(git --git-dir=#{full_path} gc) system(*cmd) end |