-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
.git/branchless/config
"defaults" override config set with git config
.
#338
Comments
The workaround is to delete the undesired entries from |
Thanks for reporting. I was able to reproduce this. It's safe to delete those entries from This is an artifact of the solution for #219. The best solution is probably to not install the |
Would it be possible not to explicitly set that option at all? That way I can have a global default. Then branchless can have an internal default at the lowest priority.
|
That seems sensible. I guess the flow should be:
Currently, git-branchless does not establish an internal default, but I think in the above flow, it doesn't really matter. |
That makes sense. I agree that if you are going to prompt than no global default is needed. This way you always have a value, the global default just skips the prompt. One slight edge case to handle is if someone creates a repo with a global default set but then removes it. In that case you may end up with know value and need a sensible behavior. Maybe just prompt at that point? Or just provide an example command to set something. |
Due to #338, the suggestion as provided may not actually work.
Due to #338, the suggestion as provided may not actually work.
Due to #338, the suggestion as provided may not actually work.
For this specific issue, we can probably close this issue due to #588, because the recommended way of setting the main branch is now |
Description of the bug
Expected behavior
When I ran branchless I got the warning:
I expected running that command would fix the issue.
Actual behavior
The
git config
command is effectively ignored because the extra config file overrides it.Version of
git-branchless
git-branchless 0.3.10
Version of
git
git version 2.35.1
Version of
rustc
No response
Automated bug report
Events
Error: Could not find repository main branch
The text was updated successfully, but these errors were encountered: