GitInput: Determine default branch for repository #86

Open
mweinelt wants to merge 1 commit from git-default-branch into main
Member

Up until now when no branch was defined the Git Plugin hardcoded the
master branch.

Now we try resolving the default branch with git ls-remote and allow
a configurable fallback branch, that can be master or anything else.

Up until now when no branch was defined the Git Plugin hardcoded the master branch. Now we try resolving the default branch with git ls-remote and allow a configurable fallback branch, that can be master or anything else.
Up until now when no branch was defined the Git Plugin hardcoded the
master branch.

Now we try resolving the default branch with git ls-remote and allow
a configurable fallback branch, that can be master or anything else.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin git-default-branch:git-default-branch
git switch git-default-branch

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff git-default-branch
git switch git-default-branch
git rebase main
git switch main
git merge --ff-only git-default-branch
git switch git-default-branch
git rebase main
git switch main
git merge --no-ff git-default-branch
git switch main
git merge --squash git-default-branch
git switch main
git merge --ff-only git-default-branch
git switch main
git merge git-default-branch
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/hydra!86
No description provided.