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

Read initial git branch name from user config. #6528

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

mbien
Copy link
Member

@mbien mbien commented Oct 4, 2023

closes #3719 and NETBEANS-4990

depends on #6500 (this temporarily includes the linked PR for testing purposes, see last commit)

test:

git config --global init.defaultBranch yoda

create new project or select folder, team -> git -> init repo, commit something and check branch name

@mbien mbien added do not merge Don't merge this PR, it is not ready or just demonstration purposes. git [ci] enable versioning job ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Oct 4, 2023
@mbien mbien added this to the NB20 milestone Oct 4, 2023
@mbien mbien requested a review from neilcsmith-net October 4, 2023 08:10
@neilcsmith-net
Copy link
Member

Sounds good. We should also tell people they can configure this from within NetBeans?

Using either Team / Git / Open Global Configuration or Team / Repository / Open Global Configuration depending on context, and add

[init]
	defaultBranch = yoda

@mbien mbien force-pushed the git-initial-branch branch from 4a0a1f5 to da5165f Compare October 14, 2023 01:31
@mbien mbien removed the do not merge Don't merge this PR, it is not ready or just demonstration purposes. label Oct 14, 2023
@mbien mbien marked this pull request as ready for review October 14, 2023 01:34
Sets initial ref name, first commit will create the branch
with the specified name.
@mbien mbien force-pushed the git-initial-branch branch from da5165f to e7f236a Compare October 14, 2023 01:51
Copy link
Contributor

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me.

@mbien mbien merged commit 887e47e into apache:master Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) git [ci] enable versioning job
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Respect init.defaultBranch configuration value when initializing a Git repository
3 participants