-
Notifications
You must be signed in to change notification settings - Fork 666
Closed
Description
Description
Upon following the instructions in my terminal to set a name with jj config set --user user.name
, I was presented with a very unusual error:
$ jj config set --user user.name "Micheal D'Angelo"
error: invalid value 'Micheal D'Angelo' for '<VALUE>': TOML parse error at line 1, column 1
|
1 | Micheal D'Angelo
| ^
invalid string
expected `"`, `'`
For more information, try '--help'.
Steps to Reproduce the Problem
Here is the full flow that I, as an end user, experienced to get to this point:
$ jj git init
Error: Did not create a jj repo because there is an existing Git repo in this directory.
Hint: To create a repo backed by the existing Git repo, run `jj git init --colocate` instead.
$ jj git init --colocate
Done importing changes from the underlying Git repo.
Setting the revset alias `trunk()` to `prod@origin`
Hint: The following remote bookmarks aren't associated with the existing local bookmarks:
prod@origin
some-branch@origin
Hint: Run `jj bookmark track prod@origin some-branch@origin` to keep local bookmarks updated on future pulls. Initialized repo in "."
$ jj bookmark track prod@origin some-branch@origin
Started tracking 2 remote bookmarks.
Warning: Name and email not configured. Until configured, your commits will be created with the empty identity, and can't be pushed to remotes. To configure, run:
jj config set --user user.name "Some One"
jj config set --user user.email "someone@example.com"
Specifications
- Version: jj 0.26.0-613742dfbbd89324b25672a75ef8ce9e671ae0d3
- Setting a
user.name
is confusing withjj config set
if the name contains a comma #5233, Unable to configure user name #5231 seem like similar issues
Perhaps for configuration fields of a known type (such as a name which we know is a string), these should be interpreted as a string rather than as a TOML table?
Metadata
Metadata
Assignees
Labels
No labels