Skip to content

Avoid fatal: bad revision HEAD in Git WebUI on empty repo #228

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

Closed
isc-tleavitt opened this issue Jan 24, 2023 · 3 comments · Fixed by #288
Closed

Avoid fatal: bad revision HEAD in Git WebUI on empty repo #228

isc-tleavitt opened this issue Jan 24, 2023 · 3 comments · Fixed by #288
Assignees
Labels
bug Something isn't working

Comments

@isc-tleavitt
Copy link
Collaborator

This is a likely situation if you've run git init and haven't committed anything yet.

@isc-tleavitt isc-tleavitt self-assigned this Jan 24, 2023
@isc-tleavitt isc-tleavitt added the bug Something isn't working label Jan 24, 2023
@isc-tleavitt isc-tleavitt changed the title Avoid fatal: bad revision HEAD on empty repo Avoid fatal: bad revision HEAD in Git WebUI on empty repo Jan 24, 2023
@isc-tleavitt
Copy link
Collaborator Author

@isc-pbarton this would be a nice thing to have before Summit too (just thinking about the new-user experience)

@isc-rsaptars
Copy link
Contributor

isc-rsaptars commented Sep 19, 2023

Needed some clarifications:
I get this error when I initialize an empty git directory through the Configure() workflow. Is there any other workflow in which git init is used to create an empty git directory?
I have fixed the Configure() workflow by adding an empty initial commit after the directory is created.

@isc-tleavitt
Copy link
Collaborator Author

@isc-rsaptars I think that's sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants