v0.7.9 - Auto-detection branche par defaut du remote
Changements : - Detection automatique de la branche par defaut (main/master) via git ls-remote --symref HEAD - Plus besoin de specifier branch dans config.ini si le remote utilise main - Clone avec la bonne branche detectee (-b) - Fallback sur master si la detection echoue Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -38,15 +38,11 @@ func loadConfig() ([]RepoConfig, SelfUpdateConfig, error) {
|
||||
case strings.HasPrefix(section, "repo:"):
|
||||
name := strings.TrimPrefix(section, "repo:")
|
||||
if kv["url"] != "" && kv["path"] != "" {
|
||||
branch := kv["branch"]
|
||||
if branch == "" {
|
||||
branch = "master"
|
||||
}
|
||||
repos = append(repos, RepoConfig{
|
||||
Name: name,
|
||||
URL: kv["url"],
|
||||
Path: kv["path"],
|
||||
Branch: branch,
|
||||
Branch: kv["branch"], // vide = auto-détection
|
||||
})
|
||||
}
|
||||
case section == "self-update":
|
||||
|
||||
Reference in New Issue
Block a user