dolt init
fails if dolt config
is run without global arguments
#8835
Labels
dolt init
fails if dolt config
is run without global arguments
#8835
I think there may be one or two separate bugs covered by this.
Overall bug: It seems to be impossible to make a new repo on dolthub, and then initialize it with a non-global email/name config.
Reproduction
mkdir new-repo ; cd new-repo
dolt init
Author identity unknown. Run dolt config... .... Omit --global to set the identity only in this repository.
dolt config --add user.email ...
anddolt config --add user.name ...
dolt init
. See that it fails:Failed to initialize directory as a data repo. .dolt directory already exists at '.'
dolt remote add origin ...
. See that it fails:The current directory is not a valid dolt repository.
I suppose this is expected.Suggested Improvements
Any of these would fix the overall . I'd suggest that all of them should be implemented:
dolt init
if the only thing in the.dolt
folder of a repo is a config.json.The text was updated successfully, but these errors were encountered: