Skip to content

Commit 75a9981

Browse files
committed
support commit message with spaces
1 parent a80597b commit 75a9981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/controlbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ define(['d3'], function () {
144144
},
145145

146146
commit: function (args) {
147-
if (args.length === 2) {
147+
if (args.length >= 2) {
148148
var arg = args.shift();
149149

150150
switch (arg) {
151151
case '-m':
152-
var mess = args[args.length - 1];
152+
var mess = args.join(" ");
153153
this.historyView.commit({},mess);
154154
break;
155155
default:

0 commit comments

Comments
 (0)