Open pratikpc opened 2 years ago
I would vote against hardcoding a default branch. The default branch should be determined from the Git CLI itself.
This is just an example of a place of use.
There definitely are other places where common sense based defaults can and will play a role for obvious reasons.
In scoop-status.ps1, we are using scoop config SCOOP_BRANCH to get the Scoop branch but if the Scoop branch is not set, then this causes issues.
https://github.com/ScoopInstaller/Scoop/blob/master/libexec/scoop-status.ps1#L20
Would it be possible to instead add a default like option?
scoop config SCOOP_BRANCH --by-default master or something similar?