Skip to content

Patch to properly handle situation where a git commit has an empty file set - #17

Closed
cfuhrman wants to merge 1 commit into
rubyworks:masterfrom
cfuhrman:master
Closed

cfuhrman wants to merge 1 commit into
rubyworks:masterfrom
cfuhrman:master

Conversation

@cfuhrman

Copy link
Copy Markdown

Should a git commit contain no file changes, a situation which is
possible when the git repository has been converted from another SCM
system such as Subversion, then assign an empty string to the list of
files.

This will prevent an exception caused when ruby tries to split a Nil
object.

Tested against git 1.8.0.1 and ruby 1.9.3

Should a git commit contain no file changes, a situation which is
possible when the git repository has been converted from another SCM
system such as Subversion, then assign an empty string to the list of
files.

This will prevent an exception caused when ruby tries to split a Nil
object.

Tested against git 1.8.0.1 and ruby 1.9.3
@trans

trans commented Nov 24, 2026

Copy link
Copy Markdown
Member

Thank you for this, and apologies for the very long wait. VCLog 1.10.0 is out and handles commits with no files: the Git log parsing this patches was rewritten (#19), so the fix went in by a different route, with a test for the case. You're credited in the History entry.

@trans trans closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants