Skip to content

Commit 2ae9678

Browse files
committed
fix: package version when mapped
1 parent a800fba commit 2ae9678

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,9 +1658,7 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
16581658
}
16591659
do ..PrintStreams(errStream, outStream)
16601660
if syncIris {
1661-
16621661
$$$ThrowOnError(..SyncIrisWithRepo(.files))
1663-
16641662
}
16651663
quit returnCode
16661664
}
@@ -2140,16 +2138,18 @@ ClassMethod CheckInitialization()
21402138
}
21412139
}
21422140

2143-
ClassMethod GetPackageVersion() As %String
2141+
ClassMethod GetPackageVersion() As %String [ CodeMode = objectgenerator ]
21442142
{
21452143
set package = $$$NULLOREF
21462144
if $$$comClassDefined("%IPM.Storage.Module") {
21472145
set package = ##class(%IPM.Storage.Module).NameOpen("git-source-control")
21482146
} elseif $$$comClassDefined("%ZPM.PackageManager.Developer.Module") {
21492147
set package = ##class(%ZPM.PackageManager.Developer.Module).NameOpen("git-source-control")
21502148
}
2151-
quit $select($IsObject(package):package.VersionString,
2149+
set packageVersion = $select($IsObject(package):package.VersionString,
21522150
1:"unknown")
2151+
do %code.WriteLine(" quit "_$$$QUOTE(packageVersion))
2152+
quit $$$OK
21532153
}
21542154

21552155
ClassMethod GetSourceControlInclude() As %String
@@ -2348,4 +2348,3 @@ ClassMethod BaselineExport(pCommitMessage = "", pPushToRemote = "") As %Status
23482348
}
23492349

23502350
}
2351-

0 commit comments

Comments
 (0)