mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
another bug fix, fixed the quotes escaping
This commit is contained in:
parent
225f3cf635
commit
076f8e3056
1 changed files with 5 additions and 3 deletions
|
@ -736,9 +736,7 @@ GitEngine.prototype.checkoutStarter = function() {
|
||||||
msg: 'I expect one argument along with git checkout (dont reference files)'
|
msg: 'I expect one argument along with git checkout (dont reference files)'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.checkout(this.generalArgs[0]);
|
this.checkout(this.unescapeQuotes(this.generalArgs[0]));
|
||||||
|
|
||||||
events.trigger('treeRefresh');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GitEngine.prototype.checkout = function(idOrTarget) {
|
GitEngine.prototype.checkout = function(idOrTarget) {
|
||||||
|
@ -836,6 +834,10 @@ GitEngine.prototype.deleteBranch = function(name) {
|
||||||
this.branches.splice(toDelete, 1);
|
this.branches.splice(toDelete, 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GitEngine.prototype.unescapeQuotes = function(str) {
|
||||||
|
return str.replace(/'/g, "'");
|
||||||
|
}
|
||||||
|
|
||||||
GitEngine.prototype.dispatch = function(command, callback) {
|
GitEngine.prototype.dispatch = function(command, callback) {
|
||||||
// current command, options, and args are stored in the gitEngine
|
// current command, options, and args are stored in the gitEngine
|
||||||
// for easy reference during processing.
|
// for easy reference during processing.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue