another bug fix, fixed the quotes escaping

This commit is contained in:
Peter Cottle 2012-10-12 13:53:49 -07:00
parent 225f3cf635
commit 076f8e3056

View file

@ -736,9 +736,7 @@ GitEngine.prototype.checkoutStarter = function() {
msg: 'I expect one argument along with git checkout (dont reference files)'
});
}
this.checkout(this.generalArgs[0]);
events.trigger('treeRefresh');
this.checkout(this.unescapeQuotes(this.generalArgs[0]));
};
GitEngine.prototype.checkout = function(idOrTarget) {
@ -836,6 +834,10 @@ GitEngine.prototype.deleteBranch = function(name) {
this.branches.splice(toDelete, 1);
};
GitEngine.prototype.unescapeQuotes = function(str) {
return str.replace(/'/g, "'");
}
GitEngine.prototype.dispatch = function(command, callback) {
// current command, options, and args are stored in the gitEngine
// for easy reference during processing.