Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Commands/Worktree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public bool Add(string fullpath, string name, bool createNew, string tracking, A

if (!string.IsNullOrEmpty(tracking))
Args += tracking;
else if (!string.IsNullOrEmpty(name) && !createNew)
Args += name;

_outputHandler = outputHandler;
return Exec();
Expand Down
2 changes: 1 addition & 1 deletion src/ViewModels/AddWorktree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class AddWorktree : Popup
public string Path
{
get => _path;
set => SetProperty(ref _path, value);
set => SetProperty(ref _path, value, true);
}

public bool CreateNewBranch
Expand Down
Loading