From cf86a4032df1218839b1c8d7316a57e2a934f551 Mon Sep 17 00:00:00 2001 From: Faisal N Jawdat Date: Fri, 24 May 2024 16:46:56 -0400 Subject: [PATCH] Attempt to fix the "ambiguous argument" "unknown revision" bug. This problem appears (at least) when a source file disappeared. This change adjusts the log command to explicitly designate the path of interest. --- lib/rubycritic/source_control_systems/git/churn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubycritic/source_control_systems/git/churn.rb b/lib/rubycritic/source_control_systems/git/churn.rb index 83c84fa1..3a7e4a50 100644 --- a/lib/rubycritic/source_control_systems/git/churn.rb +++ b/lib/rubycritic/source_control_systems/git/churn.rb @@ -57,7 +57,7 @@ def git_log_commands end def git_log_command(path) - "log --all --date=iso --follow --format='format:date:%x09%ad' --name-status #{after_clause}#{path}" + "log --all --date=iso --follow --format='format:date:%x09%ad' --name-status #{after_clause} -- #{path}" end def after_clause