Skip to content

Commit 5507d98

Browse files
rafamanzorvodden
authored andcommitted
Fix ls-files for git 2.16 (#350)
Since GIT version 2.16.0 empty pathspecs as alias to "everything" has been made illegal. A more detailed study this change's impact has been made at: #345 (comment) Closes #345
1 parent 4686675 commit 5507d98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ def diff_index(treeish)
396396
end
397397

398398
def ls_files(location=nil)
399+
location ||= '.'
399400
hsh = {}
400401
command_lines('ls-files', ['--stage', location]).each do |line|
401402
(info, file) = line.split("\t")

0 commit comments

Comments
 (0)