Skip to content

Commit af2a53b

Browse files
authored
Merge pull request #286 from intersystems/reset-source-control-class
Reset source control class
2 parents c7da0f1 + 37394f2 commit af2a53b

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- Studio export path doesn't get weird mixed slahes on Windows (#252)
1717
- Fixed bug with adding mappings through the Settings page (#270)
1818
- Pulling add/delete of multiple non-IRIS files no longer causes error (#273)
19+
- Reset SourceControlClass during module uninstall to prevent "Class does not exist error" (#285)
1920

2021
## [2.2.0] - 2023-06-05
2122

cls/SourceControl/Git/Utils.cls

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,4 +1995,9 @@ ClassMethod SetDefaultMappings(mappingsNode As %String)
19951995
set @mappingsNode@("MAC","*")="rtn/"
19961996
}
19971997

1998+
ClassMethod ResetSourceControlClass()
1999+
{
2000+
do ##class(%Studio.SourceControl.Interface).SourceControlClassSet("")
2001+
}
2002+
19982003
}

module.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
<Invoke Class="SourceControl.Git.Utils" Method="Localize" />
3434
<Invoke Class="SourceControl.Git.Utils" Method="ConfigureWeb" />
3535
<Invoke Class="SourceControl.Git.Utils" Method="CheckInitialization" />
36+
37+
<Invoke Class="SourceControl.Git.Utils" Method="ResetSourceControlClass" Phase="Unconfigure" />
3638
</Module>
3739
</Document>
3840
</Export>

0 commit comments

Comments
 (0)