mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
Resolves #766 -- resolve ID on push function as well
This commit is contained in:
parent
76ea2e8694
commit
a530dcbb16
1 changed files with 2 additions and 2 deletions
|
@ -1065,7 +1065,7 @@ GitEngine.prototype.push = function(options) {
|
|||
return;
|
||||
}
|
||||
|
||||
var sourceBranch = this.refs[options.source];
|
||||
var sourceBranch = this.resolveID(options.source);
|
||||
if (sourceBranch && sourceBranch.attributes.type === 'tag') {
|
||||
throw new GitError({
|
||||
msg: intl.todo('Tags are not allowed as sources for pushing'),
|
||||
|
@ -1083,7 +1083,7 @@ GitEngine.prototype.push = function(options) {
|
|||
this.animationFactory.playRefreshAnimation(this.origin.gitVisuals);
|
||||
this.animationFactory.playRefreshAnimation(this.gitVisuals);
|
||||
}
|
||||
var branchOnRemote = this.origin.refs[options.destination];
|
||||
var branchOnRemote = this.origin.resolveID(options.destination);
|
||||
var sourceLocation = this.resolveID(options.source || 'HEAD');
|
||||
|
||||
// first check if this is even allowed by checking the sync between
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue