-
Notifications
You must be signed in to change notification settings - Fork 317
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
Freshly initialized repository shows 'History' of other recently viewed repository #1088
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Thanks for reporting the issue @guyer |
It looks like the backend does not handle the situation when git gives an error if the branch does not contain any commits. I think we can try to parse the error message at https://github.com/jupyterlab/jupyterlab-git/blob/master/jupyterlab_git/git.py#L529 and return an empty commit list if the output matches a regex like |
I also reproduced the error that @dodo0822 mentioned. After initializing the repository and clicking History, I get a blank panel (see below), instead of the last repository's history like @guyer mentioned. I also got these two error messages, but I think the fatal error with the master branch not having any commits is the first one to solve.
Version
|
Fixed by #1215 |
Description
Freshly initialized repository shows 'History' of other recently viewed repository.
Reproduce
After making a commit, history is as expected.
Expected behavior
I expect to see no history in a freshly initialized and empty repository directory
Context
Command Line Output
See https://gist.github.com/guyer/802b31ce65b9f132f89797ba47b35eeaWeb Browser Output
The text was updated successfully, but these errors were encountered: