Skip to content
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

Switch the default branch to 'main' #201

Closed
chshersh opened this issue Oct 28, 2020 · 1 comment · Fixed by #202
Closed

Switch the default branch to 'main' #201

chshersh opened this issue Oct 28, 2020 · 1 comment · Fixed by #202
Assignees
Labels
CLI command-line interface Git Git commands GitHub GitHub API

Comments

@chshersh
Copy link
Contributor

And probably introduce an environment variable e.g. HIT_DEFAULT_BRANCH to control this option?

@chshersh chshersh added GitHub GitHub API Git Git commands CLI command-line interface labels Oct 28, 2020
@chshersh chshersh added this to the v0.2.0.0: Better workflow milestone Oct 28, 2020
@vrom911 vrom911 self-assigned this Nov 6, 2020
@vrom911
Copy link
Member

vrom911 commented Nov 6, 2020

I think it is better to get from the repository information to always have up-to-date instead of env vars 🙂

basename $(git rev-parse --abbrev-ref origin/HEAD)

^ This one seems to give us exactly that!

vrom911 added a commit that referenced this issue Nov 6, 2020
vrom911 added a commit that referenced this issue Nov 6, 2020
chshersh added a commit that referenced this issue Nov 6, 2020
* [#201] Switch the default branch to 'main'

Resolves #201

* Update src/Hit/Git/Fresh.hs

Co-authored-by: hint-man[bot] <44720633+hint-man[bot]@users.noreply.github.com>

* Update src/Hit/Git/Branch.hs

Co-authored-by: Dmitrii Kovanikov <[email protected]>

* Use main at CI

Co-authored-by: hint-man[bot] <44720633+hint-man[bot]@users.noreply.github.com>
Co-authored-by: Dmitrii Kovanikov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI command-line interface Git Git commands GitHub GitHub API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants