You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In repository with only one branch (master) when choosing Create a new worktree command, the Checkout an existing branch combobox is empty and disabled. When I specify Create a new branch and click the Create the new worktree button, following exception is displayed:
GitUI.CommandsDialogs.WorktreeDialog.FormCreateWorktree.CreateWorktree()
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
System.NullReferenceException
Object reference not set to an instance of an object.
Void CreateWorktree() @ GitUI.CommandsDialogs.WorktreeDialog.FormCreateWorktree
Problem is my empty combobox and following code:
var args = new GitArgumentBuilder("worktree")
{
"add",
WorktreeDirectory.Quote(),
{ radioButtonCreateNewBranch.Checked, $"-b {textBoxNewBranchName.Text}", ((GitRef)comboBoxBranches.SelectedItem).Name }
};
Current behaviour
In repository with only one branch (master) when choosing Create a new worktree command, the Checkout an existing branch combobox is empty and disabled. When I specify Create a new branch and click the Create the new worktree button, following exception is displayed:
Problem is my empty combobox and following code:
Screenshots
Environment
The text was updated successfully, but these errors were encountered: