Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new branch in new repo #1363

Merged
merged 1 commit into from
Oct 23, 2024
Merged

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

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