Skip to content

fix: use git pull --rebase in update/install to avoid divergent branch error#2274

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-40b195db
Mar 21, 2026
Merged

fix: use git pull --rebase in update/install to avoid divergent branch error#2274
teknium1 merged 1 commit intomainfrom
hermes/hermes-40b195db

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

On a fresh machine, hermes update fails with:

hint: You have divergent branches and need to specify how to reconcile them.

Because git doesn't have pull.rebase configured by default. Fixed by passing --rebase explicitly in both places:

  • hermes_cli/main.pyhermes update command
  • scripts/install.sh — installer update path

2 files, 2 lines changed.

…ch error

Fresh installs without pull.rebase configured hit a git error when
running hermes update because git doesn't know how to reconcile
divergent branches. --ff-only is the right strategy: it works for the
normal case (local branch is behind remote) and fails cleanly if the
user somehow has local commits, rather than silently rebasing them.
@teknium1 teknium1 force-pushed the hermes/hermes-40b195db branch from e03a74e to 870ebb8 Compare March 21, 2026 05:29
@teknium1 teknium1 merged commit 651e92f into main Mar 21, 2026
1 check passed
@enzo2
Copy link
Copy Markdown

enzo2 commented Mar 25, 2026

Could there have been a mix-up? The title says --rebase, but the commit is --ff-only

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

Labels

None yet

2 participants