Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 698106d

Browse files
committed
remove default depth
1 parent d6422b9 commit 698106d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

assets/lib/commands/in.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def depth_flag
7777
if depth = input.params.git.depth
7878
"--depth #{depth}"
7979
else
80-
'--depth 1'
80+
''
8181
end
8282
end
8383
end

spec/commands/in_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ def dont_expect_arg(*args)
191191
end
192192

193193
it 'get submodules with paths' do
194-
expect_arg /git submodule update --init --recursive --depth 1 path1/
195-
expect_arg /git submodule update --init --recursive --depth 1 path2/
194+
expect_arg /git submodule update --init --recursive path1/
195+
expect_arg /git submodule update --init --recursive path2/
196196
get('version' => { 'ref' => @ref, 'pr' => '1' }, 'source' => { 'uri' => git_uri, 'repo' => 'jtarchie/test' }, 'params' => { 'git' => { 'submodules' => %w(path1 path2) } })
197197
end
198198

0 commit comments

Comments
 (0)