From a530dcbb161c88458dbac218308e868c3bd02690 Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Wed, 30 Dec 2020 08:32:58 -0700 Subject: [PATCH] Resolves #766 -- resolve ID on push function as well --- src/js/git/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/git/index.js b/src/js/git/index.js index e033dc65..2f45a024 100644 --- a/src/js/git/index.js +++ b/src/js/git/index.js @@ -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