diff --git a/.config/fish/config.fish b/.config/fish/config.fish index c17ff55..fea9e0b 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -38,7 +38,7 @@ # DOTFILES_DIR holds the template files; DOTFILES_BACKUP_DIR holds backups # and the last-update-check timestamp. -set -g DOTFILES_VERSION "1.0.4" +set -g DOTFILES_VERSION "1.0.5" # --- Remote repository (set this to enable auto-updates) -------------------- # Example: diff --git a/.config/fish/functions/dotfiles.fish b/.config/fish/functions/dotfiles.fish index fc3f1ec..b0fd2a5 100644 --- a/.config/fish/functions/dotfiles.fish +++ b/.config/fish/functions/dotfiles.fish @@ -382,6 +382,12 @@ if test -f "$repo_file" set -gx DOTFILES_REPO_URL (command cat "$repo_file") end +# Ensure there's always a default branch, even if config.fish hasn't been +# reloaded after a framework update. +if not set -q DOTFILES_REPO_BRANCH + set -gx DOTFILES_REPO_BRANCH "main" +end + # ══════════════════════════════════════════════════════════════════════════════ # dotfiles_sync — full sync: git pull + update all dotfiles