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

Unable to set user name and email #1323

Closed
Zsailer opened this issue May 14, 2024 · 1 comment · Fixed by #1324
Closed

Unable to set user name and email #1323

Zsailer opened this issue May 14, 2024 · 1 comment · Fixed by #1324
Labels

Comments

@Zsailer
Copy link
Member

Zsailer commented May 14, 2024

Description

(Huge thanks to @jzhang20133 for finding the root cause of this issue—I'm merely reporting her findings :))

We noticed a regression from previous versions of this package.

When initializing a repo, if the user name and email is not set, the extension no longer raises a modal prompting a user for name/email. Instead, it raises an error dialog to the user:

image

The root of the issue appears related to related to: #1294

There is one more place where we should explicitly check if path == null:

When we make this change, the prompt appears:

image

Reproduce

The easiest way to trigger this issue is to remove any git config that sets the user's email or name. Then, turn off git's "auto-detection" for user details/email.

git config --unset user.name
git config --unset user.email

git config --local user.useConfigOnly true

After adding these settings, use jupyterlab-git to make an commit and you'll see the error mentioned above.

Expected behavior

Prompt the user for a user name and email if not set.

@Zsailer Zsailer added the bug label May 14, 2024
Copy link

welcome bot commented May 14, 2024

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

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 a pull request may close this issue.

1 participant