Skip to content

Conversation

@gjmooney
Copy link
Contributor

Fix for #1354

The issue was caused because in the command for creating a new branch git checkout -b <branch_name> <start_point>, git tries to resolve <start_point> to a commit hash, but there isn't one until a commit is made, so I added an empty commit to the init endpoint.

new_branch

@github-actions
Copy link

Binder 👈 Launch a Binder on branch gjmooney/jupyterlab-git/new_repo_branch

@jtpio jtpio added the bug label Oct 23, 2024
@jtpio jtpio linked an issue Oct 23, 2024 that may be closed by this pull request
Copy link
Member

@jtpio jtpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jtpio jtpio merged commit 544e89f into jupyterlab:main Oct 23, 2024
9 of 10 checks passed
@gjmooney gjmooney deleted the new_repo_branch branch October 23, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating a new branch in a new repo (initialized from the UI) fails

2 participants