-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Invalid git core.abbrev
values cause failure to open repositories
#4272
Comments
@daniel-white Please post the output of |
nope we just normally use as for the ownership of the directory, its owned by my user account.
|
@daniel-white It seems like the repo isn't being discovered. Please post a list of the files in the base level of the @Byron Do you have any ideas on how to best debug this or on possible causes? In particular, do you know any |
|
also i tried installing gitoxide with |
@daniel-white try |
so this is interesting
where that works in the other repo. setting that to i wonder if theres a problem in gitoxide that makes this mandatory where one can repro if with |
@daniel-white Thanks for the update! |
core.abbrev
values cause failure to open repositories
Indeed, the only way to see what's going on is to run Thanks everyone for debugging this, even though the error is quite intentional and definitely worth a thought.
If a lesson is to be learned here, then it's probably that ❯ git log
error: missing value for 'core.abbrev'
fatal: bad config variable 'core.abbrev' in file '.git/config' at line 8 …in my case. As a catch-22 though, since I will change this behaviour and review other places as well to make startup as forgiving as possible. |
I have implemented this by interpreting configuration values leniently by default, which is behaviour more suitable to API users or A new release will be created in the course of my day and |
This release comes with lenient configuration handling by default, allowing to open repositories even their configuration values are invalid (even for git), as long as there are viable defaults. Furthermore this release adds the ability to open submodule repsitories. Fixes starship#4266 and fixes starship#4272
* upgrade `gitoxide` to v0.21 This release comes with lenient configuration handling by default, allowing to open repositories even their configuration values are invalid (even for git), as long as there are viable defaults. Furthermore this release adds the ability to open submodule repsitories. Fixes #4266 and fixes #4272 * Assure an object cache is set to speed up `commit.describe()` Related to #4275 bringing performance to spitting distance compared to git.
* upgrade `gitoxide` to v0.21 This release comes with lenient configuration handling by default, allowing to open repositories even their configuration values are invalid (even for git), as long as there are viable defaults. Furthermore this release adds the ability to open submodule repsitories. Fixes starship#4266 and fixes starship#4272 * Assure an object cache is set to speed up `commit.describe()` Related to starship#4275 bringing performance to spitting distance compared to git.
Bug Report
Current Behavior
@daniel-white (#4266)
The text was updated successfully, but these errors were encountered: