mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
Resolves #768 -- fix pull arguments (same issue)
This commit is contained in:
parent
a530dcbb16
commit
8a159ea498
2 changed files with 5 additions and 5 deletions
|
@ -253,7 +253,7 @@ var commandConfig = {
|
|||
source = firstArg;
|
||||
assertIsBranch(engine.origin, source);
|
||||
// get o/master locally if master is specified
|
||||
destination = engine.origin.refs[source].getPrefixedID();
|
||||
destination = engine.origin.resolveID(source).getPrefixedID();
|
||||
} else {
|
||||
// can't be detached
|
||||
if (engine.getDetachedHead()) {
|
||||
|
|
|
@ -405,7 +405,7 @@ GitEngine.prototype.makeBranchIfNeeded = function(branchName) {
|
|||
};
|
||||
|
||||
GitEngine.prototype.makeRemoteBranchForRemote = function(branchName) {
|
||||
var target = this.origin.refs[branchName].get('target');
|
||||
var target = this.origin.resolveID(branchName).get('target');
|
||||
var originTarget = this.findCommonAncestorWithRemote(
|
||||
target.get('id')
|
||||
);
|
||||
|
@ -1313,7 +1313,7 @@ GitEngine.prototype.fetchCore = function(sourceDestPairs, options) {
|
|||
// need to get the parents first. since we order by depth, we know
|
||||
// the dependencies are there already
|
||||
var parents = parentIDs.map(function(parentID) {
|
||||
return this.refs[parentID];
|
||||
return this.resolveID(parentID);
|
||||
}, this);
|
||||
return this.makeCommit(parents, id);
|
||||
}.bind(this);
|
||||
|
@ -1345,7 +1345,7 @@ GitEngine.prototype.fetchCore = function(sourceDestPairs, options) {
|
|||
|
||||
chain = chain.then(function() {
|
||||
return this.animationFactory.playHighlightPromiseAnimation(
|
||||
this.origin.refs[commitJSON.id],
|
||||
this.origin.resolveID(commitJSON.id),
|
||||
localBranch
|
||||
);
|
||||
}.bind(this));
|
||||
|
@ -1361,7 +1361,7 @@ GitEngine.prototype.fetchCore = function(sourceDestPairs, options) {
|
|||
chain = chain.then(function() {
|
||||
// update all the destinations
|
||||
sourceDestPairs.forEach(function (pair) {
|
||||
var ours = this.refs[pair.destination];
|
||||
var ours = this.resolveID(pair.destination);
|
||||
var theirCommitID = this.origin.getCommitFromRef(pair.source).get('id');
|
||||
// by definition we just made the commit with this id,
|
||||
// so we can grab it now
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue