Skip to content

Commit

Permalink
support commit message with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
toutantic committed Jun 23, 2015
1 parent a80597b commit 75a9981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/controlbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ define(['d3'], function () {
},

commit: function (args) {
if (args.length === 2) {
if (args.length >= 2) {
var arg = args.shift();

switch (arg) {
case '-m':
var mess = args[args.length - 1];
var mess = args.join(" ");
this.historyView.commit({},mess);
break;
default:
Expand Down

0 comments on commit 75a9981

Please sign in to comment.