Skip to content

Do not try to import settings file if repo directory does not exist #715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cls/SourceControl/Git/Utils.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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)) = ""
}

Expand Down
Loading