You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Uninstall is asymmetric with init: advice.addEmbeddedRepo=false is never restored (no deinit) #42
But removal only undoes the first. uninstall-hooks removes the hook scripts and nothing else, and there is no deinit command. So after uninstalling, advice.addEmbeddedRepo=false is left behind in the repo's local config — which means git's "adding embedded git repository" warning stays permanently silenced even though git-embedded is gone.
That warning is precisely the safety net you want back once the tool is removed: it's what catches an accidental git add of a nested checkout as a stray gitlink. Leaving it off is the worst-direction failure — silent.
No source path unsets/restores it (grep for unset / addEmbeddedRepo across src/ finds only the setter and unrelated registry getters).
Command surface is doctor / export / init / install-hooks / install-template / link / print-hook-script / record / restore / sync / uninstall-hooks / version / help — no deinit / full uninstall.
Suggested fix
Make removal symmetric with init. Preferably add a deinit command (the mirror of init) that:
runs uninstall-hooks, and
restores the advice — git config --local --unset advice.addEmbeddedRepo (guard: only unset when the local value is false, i.e. what init would have set, so a user's deliberate setting isn't clobbered).
Alternatively (or additionally), have uninstall-hooks unset the advice config too, or at minimum print a warning that it left advice.addEmbeddedRepo=false behind and how to restore it.
Workaround (what removal currently requires by hand)
Encountered while removing git-embedded from a parent workspace repo: uninstall-hooks cleared the hooks but left the advice silenced, so the embedded-repo warning had to be restored manually.
This issue has been inactive for 60 days. It will be auto-closed in 14 days if there is no further activity. Comment to keep it open, add the pinned label to exempt it permanently, or close it if it is no longer relevant.
Activity
cldmv-bot commentedon Oct 5, 2026
This issue has been inactive for 60 days. It will be auto-closed in 14 days if there is no further activity. Comment to keep it open, add the
pinnedlabel to exempt it permanently, or close it if it is no longer relevant.