Skip to content

Commit 56148ea

Browse files
committed
fixed issue with non-ipm package contexts and typo where '= was =
1 parent c3b9a95 commit 56148ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cls/SourceControl/Git/Change.cls

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,11 @@ ClassMethod RefreshUncommitted(Display = 0, IncludeRevert = 0, Output gitFiles,
131131
set examine=$select(action="add":1,action="edit":1,action="delete":1, IncludeRevert&&(action="revert"):1,1:0)
132132
if 'examine set filename=$order(tFileList(filename),1,action) continue
133133

134-
set context = ##class(SourceControl.Git.PackageManagerContext).%Get()
135-
set packageRoot = context.Package.Root
134+
set packageRoot = ##class(SourceControl.Git.Utils).TempFolder()
136135
set InternalName = ##class(SourceControl.Git.Utils).NameToInternalName(filename,0,0)
137136

138137
// skip files belonging to other git enabled packages
139-
if ($EXTRACT(filename, 1, $LENGTH(packageRoot)) = packageRoot) continue
138+
if ($EXTRACT(filename, 1, $LENGTH(packageRoot)) '= packageRoot) continue
140139

141140

142141
if (('##class(%File).Exists(filename)) || (InternalName = "") || ((InternalName '= "") && ('$data(gitFiles(InternalName), found)) &&

0 commit comments

Comments
 (0)