From 698106d7b91cb186451fe50c732f0dfff9471a1b Mon Sep 17 00:00:00 2001 From: JT Archie Date: Wed, 1 Mar 2017 21:25:16 -0700 Subject: [PATCH] remove default depth --- assets/lib/commands/in.rb | 2 +- spec/commands/in_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/lib/commands/in.rb b/assets/lib/commands/in.rb index ccdc8ac..816152b 100755 --- a/assets/lib/commands/in.rb +++ b/assets/lib/commands/in.rb @@ -77,7 +77,7 @@ def depth_flag if depth = input.params.git.depth "--depth #{depth}" else - '--depth 1' + '' end end end diff --git a/spec/commands/in_spec.rb b/spec/commands/in_spec.rb index 7db3bd0..e0eaf53 100644 --- a/spec/commands/in_spec.rb +++ b/spec/commands/in_spec.rb @@ -191,8 +191,8 @@ def dont_expect_arg(*args) end it 'get submodules with paths' do - expect_arg /git submodule update --init --recursive --depth 1 path1/ - expect_arg /git submodule update --init --recursive --depth 1 path2/ + expect_arg /git submodule update --init --recursive path1/ + expect_arg /git submodule update --init --recursive path2/ get('version' => { 'ref' => @ref, 'pr' => '1' }, 'source' => { 'uri' => git_uri, 'repo' => 'jtarchie/test' }, 'params' => { 'git' => { 'submodules' => %w(path1 path2) } }) end