mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-23 01:36:57 -08:00
fix: prevent target branch HEAD from being changed when adding worktree (#919)
* fix: prevent target branch HEAD from being changed when adding worktree Signed-off-by: Gadfly <gadfly@gadfly.vip> * fix: worktree path validator trigger error Signed-off-by: Gadfly <gadfly@gadfly.vip> --------- Signed-off-by: Gadfly <gadfly@gadfly.vip>
This commit is contained in:
parent
38e7b69450
commit
6482ef227a
2 changed files with 3 additions and 1 deletions
|
@ -73,6 +73,8 @@ namespace SourceGit.Commands
|
|||
|
||||
if (!string.IsNullOrEmpty(tracking))
|
||||
Args += tracking;
|
||||
else if (!string.IsNullOrEmpty(name) && !createNew)
|
||||
Args += name;
|
||||
|
||||
_outputHandler = outputHandler;
|
||||
return Exec();
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace SourceGit.ViewModels
|
|||
public string Path
|
||||
{
|
||||
get => _path;
|
||||
set => SetProperty(ref _path, value);
|
||||
set => SetProperty(ref _path, value, true);
|
||||
}
|
||||
|
||||
public bool CreateNewBranch
|
||||
|
|
Loading…
Reference in a new issue