feature: use branch's fullname to create new branch based on selected one

This commit is contained in:
leo 2024-03-08 09:29:54 +08:00
parent 59b7fd8c61
commit 3eb8a82005

View file

@ -28,7 +28,7 @@ namespace SourceGit.ViewModels {
public CreateBranch(Repository repo, Models.Branch branch) { public CreateBranch(Repository repo, Models.Branch branch) {
_repo = repo; _repo = repo;
_baseOnRevision = branch.Head; _baseOnRevision = branch.FullName;
BasedOn = branch; BasedOn = branch;
View = new Views.CreateBranch() { DataContext = this }; View = new Views.CreateBranch() { DataContext = this };