Automatically detect default branch of custom repo - #428
Merged
Conversation
|
Backport failed for 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 |
Reqrefusion
pushed a commit
to Reqrefusion/FreeCAD-Documentation-Project
that referenced
this pull request
Aug 17, 2026
… jest teraz opcjonalne.''' Pozostawienie go pustego powoduje, że Menedżer dodatków pobiera domyślną gałąź repozytorium za pomocą {{Incode|git ls-remote}}, a w razie niepowodzenia sprawdza kolejno {{Incode|main}} i {{Incode|master}}. Wcześniej w przypadku nieokreślonej gałęzi domyślnie przyjmowano {{Incode|master}}. [FreeCAD/AddonManager#428 Pull request #428]"
Reqrefusion
pushed a commit
to Reqrefusion/FreeCAD-Documentation-html
that referenced
this pull request
Aug 17, 2026
… jest teraz opcjonalne.''' Pozostawienie go pustego powoduje, że Menedżer dodatków pobiera domyślną gałąź repozytorium za pomocą {{Incode|git ls-remote}}, a w razie niepowodzenia sprawdza kolejno {{Incode|main}} i {{Incode|master}}. Wcześniej w przypadku nieokreślonej gałęzi domyślnie przyjmowano {{Incode|master}}. [FreeCAD/AddonManager#428 Pull request #428]"
Reqrefusion
pushed a commit
to Reqrefusion/FreeCAD-Documentation-Project
that referenced
this pull request
Aug 17, 2026
…iertes Repository ist nun optional.''' Wird das Feld leer gelassen, fragt der Addon-Manager über {{Incode|git ls-remote}} den Standardzweig des Repositorys ab und greift dabei zunächst auf {{Incode|main}} und anschließend auf {{Incode|master}} zurück. Bisher wurde bei einem nicht angegebenen Zweig von {{Incode|master}} ausgegangen. [FreeCAD/AddonManager#428 Pull-Request #428]"
Reqrefusion
pushed a commit
to Reqrefusion/FreeCAD-Documentation-html
that referenced
this pull request
Aug 17, 2026
…iertes Repository ist nun optional.''' Wird das Feld leer gelassen, fragt der Addon-Manager über {{Incode|git ls-remote}} den Standardzweig des Repositorys ab und greift dabei zunächst auf {{Incode|main}} und anschließend auf {{Incode|master}} zurück. Bisher wurde bei einem nicht angegebenen Zweig von {{Incode|master}} ausgegangen. [FreeCAD/AddonManager#428 Pull-Request #428]"
Reqrefusion
pushed a commit
to Reqrefusion/FreeCAD-Documentation-html
that referenced
this pull request
Aug 17, 2026
…e nyní volitelné.''' Pokud ho necháte prázdné, Správce doplňků si od repozitáře vyžádá jeho výchozí větev pomocí {{Incode|git ls-remote}}, přičemž v případě neúspěchu se pokusí o {{Incode|main}} a poté o {{Incode|master}}. Dříve se u nespecifikované větve předpokládalo, že se jedná o {{Incode|master}}. [FreeCAD/AddonManager#428 Pull request #428]"
Reqrefusion
pushed a commit
to Reqrefusion/FreeCAD-Documentation-Project
that referenced
this pull request
Aug 17, 2026
…é est désormais facultatif.''' Si vous le laissez vide, le gestionnaire des extensions demandera au dépôt sa branche par défaut via {{Incode|git ls-remote}}, en se rabattant sur {{Incode|main}} puis sur {{Incode|master}}. Auparavant, une branche non spécifiée était supposée être {{Incode|master}}. [FreeCAD/AddonManager#428 Pull request #428]"
Reqrefusion
pushed a commit
to Reqrefusion/FreeCAD-Documentation-html
that referenced
this pull request
Aug 17, 2026
…é est désormais facultatif.''' Si vous le laissez vide, le gestionnaire des extensions demandera au dépôt sa branche par défaut via {{Incode|git ls-remote}}, en se rabattant sur {{Incode|main}} puis sur {{Incode|master}}. Auparavant, une branche non spécifiée était supposée être {{Incode|master}}. [FreeCAD/AddonManager#428 Pull request #428]"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Instead of falling back to
master, usegit'sls-remotecommand to figure out the default branch.