Skip to content

fix(installer): recover bootstrap when managed git clone diverged - #55663

Merged
jquesnelle merged 2 commits into
NousResearch:mainfrom
xxxigm:fix/bootstrap-diverged-git-pull
Jun 30, 2026
Merged

fix(installer): recover bootstrap when managed git clone diverged#55663
jquesnelle merged 2 commits into
NousResearch:mainfrom
xxxigm:fix/bootstrap-diverged-git-pull

Conversation

@xxxigm

@xxxigm xxxigm commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bootstrap/desktop updates failed at the repository stage when ~/.hermes/hermes-agent had diverged from origin/main (git pull --ff-only exit 128)
  • hermes update already recovers by resetting to origin/$BRANCH; install.sh and install.ps1 did not
  • Add the same ff-only → reset --hard origin/$BRANCH fallback to both installer scripts

Fixes #53257. Supersedes #53363 by also covering install.ps1 (Windows bootstrap).

Test plan

  • scripts/run_tests.sh tests/test_install_diverged_update.py -q
  • bash -n scripts/install.sh

xxxigm added 2 commits June 30, 2026 20:11
Bootstrap and desktop updates run install.ps1/install.sh, which aborted
with exit 128 when the managed checkout had diverged from origin/main.
Mirror the hermes update recovery path: reset to origin/$BRANCH instead
of failing the repository stage.
…ipts

Pin the ff-only-then-reset fallback in install.sh and install.ps1 so
bootstrap cannot regress to hard-failing on diverged git history.
@alt-glitch alt-glitch added type/bug Something isn't working comp/cli CLI entry point, hermes_cli/, setup wizard area/config Config system, migrations, profiles sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades P2 Medium — degraded but workaround exists labels Jun 30, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Supersedes #53363 by adding the same --ff-only → reset --hard origin/$BRANCH recovery to both install.sh and install.ps1 (the Windows bootstrap path #53363 didn't cover). Related, not a duplicate — flagging the pair for a maintainer.

@jquesnelle
jquesnelle self-requested a review June 30, 2026 16:37
@jquesnelle
jquesnelle merged commit c4b59e6 into NousResearch:main Jun 30, 2026
31 checks passed
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…ged-git-pull

fix(installer): recover bootstrap when managed git clone diverged
habarmc1223-sudo pushed a commit to habarmc1223-sudo/hermes-agent-fluxmem that referenced this pull request Jul 8, 2026
…ged-git-pull

fix(installer): recover bootstrap when managed git clone diverged
santhreal pushed a commit to santhreal/hermes-agent that referenced this pull request Jul 13, 2026
…ged-git-pull

fix(installer): recover bootstrap when managed git clone diverged
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
…ged-git-pull

fix(installer): recover bootstrap when managed git clone diverged
leewenjie pushed a commit to leewenjie/hermes-agent that referenced this pull request Aug 7, 2026
…ged-git-pull

fix(installer): recover bootstrap when managed git clone diverged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Setup]:

3 participants