mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
always check out branch on rebase
This commit is contained in:
parent
7e04853a77
commit
bebe06baa4
1 changed files with 3 additions and 5 deletions
|
@ -735,11 +735,9 @@ GitEngine.prototype.rebaseStarter = function() {
|
|||
};
|
||||
|
||||
GitEngine.prototype.rebase = function(targetSource, currentLocation) {
|
||||
// git for some reason always checks out the branch you are rebasing if
|
||||
// you aren't in detached head
|
||||
if (!this.getDetachedHead()) {
|
||||
this.checkout(currentLocation);
|
||||
}
|
||||
// git for some reason always checks out the branch you are rebasing,
|
||||
// no matter the result of the rebase
|
||||
this.checkout(currentLocation);
|
||||
|
||||
var targetObj = this.resolveID(targetSource);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue