summaryrefslogtreecommitdiff
path: root/spec/integration/core/git_spec.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-05-15 12:13:34 -0600
committermo khan <mo.khan@gmail.com>2020-05-15 12:13:34 -0600
commit81f8960379e2eb05f63275ca3d2caa9986d426cf (patch)
treedb0f6bed740e0ea4fed68ea2f598fdd13f9e3dc2 /spec/integration/core/git_spec.rb
parent1d7e7d741cd6e7487bffc23d810a9616d5c3e599 (diff)
Load entries in index on demand
Diffstat (limited to 'spec/integration/core/git_spec.rb')
-rw-r--r--spec/integration/core/git_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/integration/core/git_spec.rb b/spec/integration/core/git_spec.rb
index 19307af..12d4a42 100644
--- a/spec/integration/core/git_spec.rb
+++ b/spec/integration/core/git_spec.rb
@@ -30,7 +30,7 @@ RSpec.describe Spandx::Core::Git do
subject.update!
end
- specify { expect(shell).to have_received(:system).with('git', 'clone', '--quiet', url, expected_path) }
+ specify { expect(shell).to have_received(:system).with('git', 'clone', '--quiet', '--depth=1', '--single-branch', '--branch', 'master', url, expected_path) }
end
context 'when the repository has already been cloned' do