Skip to content

Commit 6652ecf

Browse files
committed
fix: do not try to import settings file in repo directory does not exist
1 parent d477eb6 commit 6652ecf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111
- Pull event handler that does an IPM uninstall and load to handle deletes (#631)
1212

13+
### Fixed
14+
- Fixed error running Import All when Git settings file does not exist (#713)
15+
1316
## [2.10.0] - 2025-02-10
1417

1518
### Added

cls/SourceControl/Git/Utils.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ ClassMethod ListItemsInFiles(ByRef itemList, ByRef err) As %Status
14931493

14941494
// Config file may exist at the root of the Git repo.
14951495
set configFilePath = ##class(%File).NormalizeFilename(##class(SourceControl.Git.Settings.Document).#EXTERNALNAME, ..TempFolder())
1496-
if ##class(%File).Exists(##class(%File).NormalizeFilename(configFilePath)) {
1496+
if (configFilePath '= "") && ##class(%File).Exists(##class(%File).NormalizeFilename(configFilePath)) {
14971497
set itemList(..NameToInternalName(configFilePath)) = ""
14981498
}
14991499

0 commit comments

Comments
 (0)