You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's working as intended (because the repository to load configuration for doesn't exist), but yeah, it's a bit inconvenient. We might need some way to specify configuration for the cwd, not for the repository/workspace directory.
EDIT: or add special case to initialization commands to preload settings for the destination directory.
Don't get me wrong, I'm very grateful to have this feature now. I simply ran into this and #5144 when setting it up, so I wanted to write it down before I forgot.
Suppose we had both --when.repositories and --when.cwd. Is there a scenario when you'd want the repositories behavior? If not, I think special case might make the most sense.
Suppose we had both --when.repositories and --when.cwd. Is there a scenario when you'd want the repositories behavior? If not, I think special case might make the most sense.
In most scenarios, --when.repositories (or --when.workspaces) would be preferred. The workspace path can be specified by -R (which doesn't change the cwd.) That said, I agree that special case is probably better. It might look ugly, but initialization code is a bit weird in some way.
Description
When initializing or cloning a new repository, conditional config is not considered when creating the first empty commit.
Steps to Reproduce the Problem
jj git clone [email protected]:jj-vcs/jj C:\src\github.com\jj
Expected Behavior
The working copy commit created by jj should have the email
[email protected]
.Actual Behavior
The working copy commit has no email address set.
Specifications
The text was updated successfully, but these errors were encountered: