mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 01:10:04 +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) {
|
GitEngine.prototype.rebase = function(targetSource, currentLocation) {
|
||||||
// git for some reason always checks out the branch you are rebasing if
|
// git for some reason always checks out the branch you are rebasing,
|
||||||
// you aren't in detached head
|
// no matter the result of the rebase
|
||||||
if (!this.getDetachedHead()) {
|
this.checkout(currentLocation);
|
||||||
this.checkout(currentLocation);
|
|
||||||
}
|
|
||||||
|
|
||||||
var targetObj = this.resolveID(targetSource);
|
var targetObj = this.resolveID(targetSource);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue