Skip to content

Automatically detect default branch of custom repo#428

Merged
chennes merged 1 commit into
FreeCAD:devfrom
chennes:customRepoDefaultBranch
Jul 13, 2026
Merged

Automatically detect default branch of custom repo#428
chennes merged 1 commit into
FreeCAD:devfrom
chennes:customRepoDefaultBranch

Conversation

@chennes

@chennes chennes commented Jul 13, 2026

Copy link
Copy Markdown
Member

Instead of falling back to master, use git's ls-remote command to figure out the default branch.

@chennes
chennes merged commit 3899698 into FreeCAD:dev Jul 13, 2026
8 checks passed
@chennes
chennes deleted the customRepoDefaultBranch branch July 13, 2026 03:57
@chennes chennes added the release to main Trigger an Action to create a PR backporting to `main` label Jul 13, 2026
@github-actions

Copy link
Copy Markdown

Backport failed for main, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin main
git worktree add -d .worktree/backport-428-to-main origin/main
cd .worktree/backport-428-to-main
git switch --create backport-428-to-main
git cherry-pick -x 03b0bb80718fc927344763622e9391494a58401a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release to main Trigger an Action to create a PR backporting to `main`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant