Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Conversation

@amrc-benmorrow
Copy link
Contributor

  • Overwrite old git remotes left behind when the process exits halfway through an update.
  • Make sure we notify over MQTT on auto-pull.

An ES class inheriting from a non-constructor is not quite clean, but
it's cleaner than keeping messing with the prototypes directly.
If the git server is killed while in the middle of doing an update it
will leave remotes behind in the git repo.
Apparently the git hook doesn't fire for direct operations on the repo.
Or maybe it's just that isomorphic-git doesn't fire hooks at all.

I'm not sure pushing to a Subject is the 'best' thing to do, but
rewiring everything as a pull leads to side-effects being hidden in
sequences.
@amrc-benmorrow amrc-benmorrow self-assigned this Mar 6, 2024
@amrc-benmorrow amrc-benmorrow merged commit f539727 into main Mar 6, 2024
@amrc-benmorrow amrc-benmorrow deleted the fix/bm-pull-remotes branch March 6, 2024 16:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants