mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +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)'
|
||||
});
|
||||
}
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue