From 191549f5ee38b82242f2ee75fea81a3ce9de9ca2 Mon Sep 17 00:00:00 2001 From: Marcel Hoyer Date: Tue, 6 Mar 2018 14:38:17 +0100 Subject: [PATCH] fix issue with Lib.ls_files in case `location` arg is nil and newer git version is running --- lib/git/lib.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 777e42ea..00cc0e72 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -396,6 +396,7 @@ def diff_index(treeish) end def ls_files(location=nil) + location ||= '.' hsh = {} command_lines('ls-files', ['--stage', location]).each do |line| (info, file) = line.split("\t")