From 979a6df4755a114e38cd1825be40cb07225f1fb4 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Tue, 11 Aug 2015 17:50:38 +0200 Subject: Skip 'git annex init' when using 'gcryptsetup' 'gcryptsetup' is a special git-annex feature that does its own initialization. --- spec/gitlab_shell_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/gitlab_shell_spec.rb') diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb index 77523d7..62e0d36 100644 --- a/spec/gitlab_shell_spec.rb +++ b/spec/gitlab_shell_spec.rb @@ -96,6 +96,14 @@ describe GitlabShell do it 'should init git-annex' do File.exists?(File.join(tmp_repos_path, 'dzaporozhets/gitlab.git/annex')).should be_true end + + context 'with git-annex-shell gcryptsetup' do + let(:ssh_cmd) { 'git-annex-shell gcryptsetup /~/dzaporozhets/gitlab.git' } + + it 'should not init git-annex' do + File.exists?(File.join(tmp_repos_path, 'dzaporozhets/gitlab.git/annex')).should be_false + end + end end end -- cgit v1.2.1