Skip to content

Embedded Git deletes itself on import #997

Closed

Description

@isc-pbarton

Issue experienced with a customer:
Running Import All would delete SourceControl.Git.Utils class, thus breaking the source control extension.

Immediate cause was ^SYS("SourceControl","Git","TSH","SourceControl.Git.Utils.CLS") global subnode was set, and workaround was to kill it. Not entirely sure why they were set.

The bug here is that Import All should never be deleting things if they are from a package manager context.

Activity

  1. self-assigned this
    on Aug 21, 2026
  2. added theissue type on Aug 21, 2026
  3. added
    customerBased on customer feedback (as opposed to something identified by developers)
    on Aug 21, 2026
  4. isc-pbarton commented on Sep 1, 2026

    @isc-pbarton
    CollaboratorAuthor

    Requires more investigation as the bug as described seems to have been fixed in #220 and I can't replicate it. I'm pretty sure the user was on latest version of Embedded Git.

  5. isc-pbarton commented on Sep 1, 2026

    @isc-pbarton
    CollaboratorAuthor

    Missing detail was that the customer had multiple namespaces and Embedded Git was mapped from one of them. To replicate:

    do ##class(SourceControl.Git.API).MapEverywhere()
    

    Then switch to another namespace, set the problematic node (or maybe it gets set by baseline export?), and do ImportAll. The class doesn't get recognized as part of an IPM context because it is mapped from another namespace.

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

Metadata

Metadata

Assignees

Labels

customerBased on customer feedback (as opposed to something identified by developers)

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions