diff options
| author | GitLab <example@example.com> | 2015-02-12 18:05:36 -0500 |
|---|---|---|
| committer | GitLab <example@example.com> | 2015-02-12 18:05:36 -0500 |
| commit | 849d8fdc7f0397f77766ff7a66175553d74c72ef (patch) | |
| tree | fb5a7e63307ae12269ff8ef634009391a8beba5b /lib/gitlab_projects.rb | |
| parent | 60ea57702fcdf2c919ab8b3aa6fb7f4f69fdfb7b (diff) | |
| download | gitlab-shell-849d8fdc7f0397f77766ff7a66175553d74c72ef.tar.gz | |
Enable git-annex validate access
Diffstat (limited to 'lib/gitlab_projects.rb')
| -rw-r--r-- | lib/gitlab_projects.rb | 5 |
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 |
