summaryrefslogtreecommitdiff
path: root/lib/gitlab_projects.rb
diff options
context:
space:
mode:
authorGitLab <example@example.com>2015-02-12 18:05:36 -0500
committerGitLab <example@example.com>2015-02-12 18:05:36 -0500
commit849d8fdc7f0397f77766ff7a66175553d74c72ef (patch)
treefb5a7e63307ae12269ff8ef634009391a8beba5b /lib/gitlab_projects.rb
parent60ea57702fcdf2c919ab8b3aa6fb7f4f69fdfb7b (diff)
downloadgitlab-shell-849d8fdc7f0397f77766ff7a66175553d74c72ef.tar.gz
Enable git-annex validate access
Diffstat (limited to 'lib/gitlab_projects.rb')
-rw-r--r--lib/gitlab_projects.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb
index 05ee211..59a9347 100644
--- a/lib/gitlab_projects.rb
+++ b/lib/gitlab_projects.rb
@@ -238,4 +238,9 @@ class GitlabProjects
$logger.info "Update head in project #{project_name} to <#{new_head}>."
true
end
+
+ def git_init_annex
+ cmd = %W(git --git-dir=#{full_path} annex init "GitLab")
+ system(*cmd)
+ end
end