<!-- Welcome! Before creating a new issue: * This is the GIT EXTENSION for JupyterLab repository. Unrelated issues will be closed. * Look at the README *Troubleshooting* section * Search for relevant issues * Check that you have updated both the jupyterlab extension and the python package to the same version * Check that you have installed Git version 2 or higher --> ## Description Initializing a repo from the `jupyterlab-git` UI and trying to create a new branch fails. <!--Describe the bug clearly and concisely. Include screenshots if possible--> ## Reproduce [jupyterlab-git-init-branch-issue.webm](https://github.com/user-attachments/assets/c5dc0446-e412-4ac8-adfa-8e825cea6385) <!--Describe step-by-step instructions to reproduce the behavior--> ## Expected behavior It should be possible to create a new branch directly after initializing the git repo. <!--Describe what you expected to happen--> ## Context <!--Complete the following for context, and add any other relevant context--> - Python package version: 0.50.1 <!-- Results of `conda list jupyterlab-git` or `pip show jupyterlab-git` --> - Extension version: 0.50.1 <!-- Results of `jupyter labextension list` --> - Git version: 2.43.0 <!-- Results of `git --version` --> - Operating System and its version: