Skip to content

Fix Git::Lib#commit_data for GPG-signed commits #610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 2, 2023
Merged
Prev Previous commit
Next Next commit
Remove #process_commit_data default sha value
As with the previous commit, this default value was relevant when this
method was also used to process git log output. It no longer is, and its
only caller passes the sha value, so we can remove the default.

Signed-off-by: Simon Coffey <simon.coffey@futurelearn.com>
  • Loading branch information
Simon Coffey committed Jan 17, 2023
commit 7924fc9496241b27d08971a7de45d9880e89d56e
2 changes: 1 addition & 1 deletion lib/git/lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def commit_data(sha)
process_commit_data(cdata, sha)
end

def process_commit_data(data, sha = nil)
def process_commit_data(data, sha)
hsh = {
'sha' => sha,
'parent' => []
Expand Down