Skip to content

Commit

Permalink
Attempt to fix the "ambiguous argument" "unknown revision" bug.
Browse files Browse the repository at this point in the history
This problem appears (at least) when a source file disappeared. This change adjusts the log command to explicitly designate the path of interest.
  • Loading branch information
faisal committed May 24, 2024
1 parent c572ea1 commit cf86a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubycritic/source_control_systems/git/churn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf86a40

Please sign in to comment.