@@ -276,7 +276,7 @@ Method OnAfterSave(InternalName As %String, Object As %RegisteredObject = {$$$NU
276
276
try {
277
277
set InternalName = ##class (SourceControl.Git.Utils ).NormalizeInternalName (.InternalName )
278
278
set context = ##class (SourceControl.Git.PackageManagerContext ).ForInternalName (InternalName )
279
- if ##class (SourceControl.Git.Utils ).IsNamespaceInGit () && .. IsInSourceControl ( InternalName ) {
279
+ if ##class (SourceControl.Git.Utils ).IsNamespaceInGit () {
280
280
// If this is a production class and production decomposition is enabled, call recursively on all modified production items.
281
281
if ##class (SourceControl.Git.Utils ).ItemIsProductionToDecompose (InternalName ) {
282
282
do ##class (SourceControl.Git.Production ).GetModifiedItemsAfterSave (InternalName , .productionItems )
@@ -296,11 +296,13 @@ Method OnAfterSave(InternalName As %String, Object As %RegisteredObject = {$$$NU
296
296
set key = $order (productionItems (key ))
297
297
}
298
298
}
299
- set filename = ##class (SourceControl.Git.Utils ).FullExternalName (InternalName )
300
- $$$ThrowOnError(##class (SourceControl.Git.Utils ).RemoveRoutineTSH (InternalName ))
301
- $$$ThrowOnError(##class (SourceControl.Git.Utils ).ExportItem (InternalName ))
302
- if '##class (SourceControl.Git.Change ).IsUncommitted (filename ) {
303
- $$$ThrowOnError(##class (SourceControl.Git.Change ).SetUncommitted (filename , " edit" , InternalName , $username , " " , 1 , " " , " " , 0 ))
299
+ if ..IsInSourceControl (InternalName ) {
300
+ set filename = ##class (SourceControl.Git.Utils ).FullExternalName (InternalName )
301
+ $$$ThrowOnError(##class (SourceControl.Git.Utils ).RemoveRoutineTSH (InternalName ))
302
+ $$$ThrowOnError(##class (SourceControl.Git.Utils ).ExportItem (InternalName ))
303
+ if '##class (SourceControl.Git.Change ).IsUncommitted (filename ) {
304
+ $$$ThrowOnError(##class (SourceControl.Git.Change ).SetUncommitted (filename , " edit" , InternalName , $username , " " , 1 , " " , " " , 0 ))
305
+ }
304
306
}
305
307
}
306
308
} catch e {
0 commit comments