Skip to content

Commit

Permalink
Fix inconsistent reflog entry format by adding the commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
rsantanatech committed Feb 16, 2024
1 parent f929861 commit 7c7fb09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/controlbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,14 @@ function(_yargs, d3, demos) {
boolean: ['amend'],
string: ['m']
})
var msg = ""
this.transact(function() {
if (opts.amend) {
this.getRepoView().amendCommit(opts.m || this.getRepoView().getCommit('head').message)
} else {
this.getRepoView().commit(null, opts.m);
}
}, function(before, after) {
var reflogMsg = 'commit: ' + msg
var reflogMsg = 'commit: ' + after.commit.message
this.getRepoView().addReflogEntry(
'HEAD', after.commit.id, reflogMsg
)
Expand Down

0 comments on commit 7c7fb09

Please sign in to comment.