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 3464526 commit 4fd527b
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 4fd527b

Please sign in to comment.