From cd19a62ae9e1839de01344025f39f73ca4ea4dad Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Tue, 14 Dec 2021 13:33:25 +0100 Subject: [PATCH] Fixed checking out remote branch doesn't preserve the starting point --- src/main/kotlin/app/git/LogManager.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/app/git/LogManager.kt b/src/main/kotlin/app/git/LogManager.kt index bc0eaba..3c8cc87 100644 --- a/src/main/kotlin/app/git/LogManager.kt +++ b/src/main/kotlin/app/git/LogManager.kt @@ -67,6 +67,7 @@ class LogManager @Inject constructor( if (ref.isBranch && ref.name.startsWith("refs/remotes/")) { setCreateBranch(true) setName(ref.simpleName) + setStartPoint(ref.objectId.name) setUpstreamMode(CreateBranchCommand.SetupUpstreamMode.TRACK) } call()