Skip to content

Commit

Permalink
Merge e55728e into 2abf7b3
Browse files Browse the repository at this point in the history
  • Loading branch information
svenfuchs committed Aug 15, 2019
2 parents 2abf7b3 + e55728e commit 9703b03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dpl/ctx/bash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def git_log(args)
# Returns the output of `git ls-files -z`, which separates log entries by
# NULs, rather than newline characters.
def git_ls_files
`git ls-files -z`.split("\x0")
`git ls-files --recurse-submodules -z`.split("\x0")
end

# Returns true if the given ref exists remotely
Expand Down
2 changes: 1 addition & 1 deletion spec/dpl/ctx/bash_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def self.cmds(cmds)
end

describe 'git_ls_files' do
cmds 'git ls-files -z': "one\x0two"
cmds 'git ls-files --recurse-submodules -z': "one\x0two"
it { expect(subject.git_ls_files).to eq ['one', 'two'] }
end

Expand Down

0 comments on commit 9703b03

Please sign in to comment.