mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 15:38:33 +02:00
ugly bug around unescaping
This commit is contained in:
parent
bbf837a4b2
commit
11074dba64
4 changed files with 17 additions and 15 deletions
|
@ -266,7 +266,7 @@ GitEngine.prototype.loadTree = function(tree) {
|
|||
};
|
||||
|
||||
GitEngine.prototype.loadTreeFromString = function(treeString) {
|
||||
this.loadTree(JSON.parse(unescape(treeString)));
|
||||
this.loadTree(JSON.parse(unescape(this.crappyUnescape(treeString))));
|
||||
};
|
||||
|
||||
GitEngine.prototype.instantiateFromTree = function(tree) {
|
||||
|
@ -357,6 +357,7 @@ GitEngine.prototype.makeOrigin = function(treeString) {
|
|||
ORIGIN_PREFIX + branchName,
|
||||
this.getCommitFromRef(originTarget)
|
||||
);
|
||||
console.log('made tracking branch', originBranch);
|
||||
|
||||
this.setLocalToTrackRemote(this.refs[branchJSON.id], originBranch);
|
||||
}, this);
|
||||
|
@ -2071,7 +2072,7 @@ GitEngine.prototype.deleteBranch = function(name) {
|
|||
};
|
||||
|
||||
GitEngine.prototype.crappyUnescape = function(str) {
|
||||
return str.replace(/'/g, "'").replace(///g, '/');
|
||||
return str.replace(/'/g, "'").replace(///g, "/");
|
||||
};
|
||||
|
||||
GitEngine.prototype.filterError = function(err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue