diff --git a/src/commandViews.js b/src/commandViews.js index bc765264..19d68e91 100644 --- a/src/commandViews.js +++ b/src/commandViews.js @@ -168,9 +168,12 @@ var CommandPromptView = Backbone.View.extend({ // split commands on semicolon _.each(value.split(';'), _.bind(function(command, index) { - command = command.replace(/^(\s+)/, ''); - command = command.replace(/(\s+)$/, ''); - command = command.replace(/"/g, '"'); + command = command + .replace(/^(\s+)/, '') + .replace(/(\s+)$/, '') + .replace(/"/g, '"') + .replace(/'/g, "'"); + command = _.escape(command); if (index > 0 && !command.length) { diff --git a/src/git.js b/src/git.js index f3431c1c..71e8bccb 100644 --- a/src/git.js +++ b/src/git.js @@ -76,6 +76,7 @@ GitEngine.prototype.exportTree = function() { }, this); var HEAD = this.HEAD.toJSON(); + HEAD.visBranch = undefined; HEAD.target = HEAD.target.get('id'); totalExport.HEAD = HEAD;