From 955b0b63e637a3de670be364e7fb82c4d01266c3 Mon Sep 17 00:00:00 2001 From: Gabriel Cardoso Date: Mon, 23 Apr 2012 16:17:14 +0200 Subject: [PATCH] Removed empty element in filenames list --- lib/git/lib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index b293737f..9eb57580 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -218,7 +218,7 @@ def branch_current def show_filenames(sha) arr = [] - command_lines('show', ['--pretty="format:"', '--name-only', sha]) + command_lines('show', ['--pretty="format:"', '--name-only', sha]).drop(1) end # returns hash