mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 15:38:33 +02:00
Fixes Issue #68 flip logic and getCommitFromRef
This commit is contained in:
parent
44db45ce0d
commit
e2ecfef4f4
8 changed files with 13 additions and 12 deletions
|
@ -546,7 +546,7 @@ GitEngine.prototype.cherrypickStarter = function() {
|
|||
var set = this.getUpstreamSet('HEAD');
|
||||
// first resolve all the refs (as an error check)
|
||||
_.each(this.generalArgs, function(arg) {
|
||||
var commit = this.resolveID(arg);
|
||||
var commit = this.getCommitFromRef(arg);
|
||||
// and check that its not upstream
|
||||
if (set[commit.get('id')]) {
|
||||
throw new GitError({
|
||||
|
@ -570,7 +570,7 @@ GitEngine.prototype.cherrypickStarter = function() {
|
|||
var afterSnapshot;
|
||||
var newCommit;
|
||||
_.each(this.generalArgs, function(arg) {
|
||||
var oldCommit = this.resolveID(arg);
|
||||
var oldCommit = this.getCommitFromRef(arg);
|
||||
animationResponse.toRebaseArray.push(oldCommit);
|
||||
|
||||
newCommit = this.cherrypick(arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue