OXYGENHUB

A new subrepo is left out of the commit that adds its .oxymodules entry issue #152 closed: completed andymccall opened this · 0 comments

andymccall

A new subrepo is left out of a commit that also adds its .oxymodules entry, even when the subrepo's path is named.

Seen 2026-10-26 making tetriblox's 158 bookmarks Oxygen-native (oxy 0.7.0):

  1. oxy submodule remove rstar-api, then commit: the Git pin's removal is recorded.
  2. Put an Oxygen subrepo back at rstar-api (a clone, its .oxy inside), write its .oxymodules entry, and oxy commit -m … .oxymodules rstar-api.
  3. The commit records .oxymodules only. oxy status still shows + added rstar-api.
  4. oxy commit -m … rstar-api straight after records the pin (A rstar-api (Subrepo, opaque)).

oxy submodule add URL PATH then oxy commit without paths does the same: the first commit records .oxymodules, and the pin needs a second commit. submodule add says "recorded in .oxymodules; commit to pin it", which reads as one commit.

Expected: a commit that adds a .oxymodules entry and names (or includes) the subrepo's path records the pin in the same change. Otherwise, say plainly what to commit next.

Probably: the snapshot decides whether a directory is a subrepo from the committed .oxymodules, not from the working copy's.

andymccall set labels bug ·

closed by change 64dc5197f9df ·