Closed jhominal closed 9 years ago
I know I am writing far too much for a one-line change...
No, this is great; I'm happy to have the rugged adapter scrutinized carefully. My initial reaction is to make the rugged adapter follow the grit adapter as closely as possible, unless we think that behavior makes no sense either.
Thank you.
I will add that RJGit also sets both author and committer to the same value. So, I guess we should just agree to implement the same behavior in rugged_adapter.
The only question remaining for me then, is whether, and how, to spec that change.
The only question remaining for me then, is whether, and how, to spec that change.
Best is probably to add a test to gollum-lib
's test suite. That way, we have one test for all adapters.
@jhominal I owe you a drink for fixing this.
As the title indicates,
Gollum::Git::Index#commit
does not set the:committer
option.As a comparison, Grit sets
committer
inGrit::Index#commit
to the same value asauthor
.I have only hit that issue because, as the
:committer
value is not set, Rugged attempted to use the configured value, which was empty in my situation, and thus threw an exception:What is the target behavior?
grit
;rugged_adapter
does not work unlessuser.name
is configured;If the behavior changes, how should it be specced?
Gollum::Git::Commit
object?commit
will not raise an exception?user.name
not be set, on any level - however, a developer running the specs is extremely likely to haveuser.name
set in his user file, making the spec useless;Yes, I know I am writing far too much for a one-line change...