Fixed checking out remote branch doesn't preserve the starting point

This commit is contained in:
Abdelilah El Aissaoui 2021-12-14 13:33:25 +01:00
parent 45d89f3699
commit cd19a62ae9

View File

@ -67,6 +67,7 @@ class LogManager @Inject constructor(
if (ref.isBranch && ref.name.startsWith("refs/remotes/")) { if (ref.isBranch && ref.name.startsWith("refs/remotes/")) {
setCreateBranch(true) setCreateBranch(true)
setName(ref.simpleName) setName(ref.simpleName)
setStartPoint(ref.objectId.name)
setUpstreamMode(CreateBranchCommand.SetupUpstreamMode.TRACK) setUpstreamMode(CreateBranchCommand.SetupUpstreamMode.TRACK)
} }
call() call()