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

Commit

Permalink
remove default depth
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarchie committed Mar 2, 2017
1 parent d6422b9 commit 698106d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/lib/commands/in.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def depth_flag
if depth = input.params.git.depth
"--depth #{depth}"
else
'--depth 1'
''
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/commands/in_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 698106d

Please sign in to comment.