From 6652ecf9901383f5908a232006078a595034e43f Mon Sep 17 00:00:00 2001 From: Pravin Barton <9560941+isc-pbarton@users.noreply.github.com> Date: Mon, 3 Mar 2025 13:58:34 -0500 Subject: [PATCH] fix: do not try to import settings file in repo directory does not exist --- CHANGELOG.md | 3 +++ cls/SourceControl/Git/Utils.cls | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c03940c7..7669d3d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Pull event handler that does an IPM uninstall and load to handle deletes (#631) +### Fixed +- Fixed error running Import All when Git settings file does not exist (#713) + ## [2.10.0] - 2025-02-10 ### Added diff --git a/cls/SourceControl/Git/Utils.cls b/cls/SourceControl/Git/Utils.cls index c09625fb..31fd1376 100644 --- a/cls/SourceControl/Git/Utils.cls +++ b/cls/SourceControl/Git/Utils.cls @@ -1493,7 +1493,7 @@ ClassMethod ListItemsInFiles(ByRef itemList, ByRef err) As %Status // Config file may exist at the root of the Git repo. set configFilePath = ##class(%File).NormalizeFilename(##class(SourceControl.Git.Settings.Document).#EXTERNALNAME, ..TempFolder()) - if ##class(%File).Exists(##class(%File).NormalizeFilename(configFilePath)) { + if (configFilePath '= "") && ##class(%File).Exists(##class(%File).NormalizeFilename(configFilePath)) { set itemList(..NameToInternalName(configFilePath)) = "" }