Skip to content

Commit 13470e8

Browse files
committed
fix: Import All now imports config file
1 parent 46c08f0 commit 13470e8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
- Fixed not showing warnings on Studio (#660)
1515
- Fixed business processes and rules not being added to source control automatically (#676)
1616
- Embedded Git commits settings when cloning empty repo to avert any issues
17+
- Fixed Import All options not importing the Embedded Git configuration file
1718

1819
## [2.9.0] - 2025-01-09
1920

cls/SourceControl/Git/Utils.cls

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,12 @@ ClassMethod ListItemsInFiles(ByRef itemList, ByRef err) As %Status
14911491
{
14921492
#define DoNotLoad 1
14931493
set res = $$$OK
1494+
1495+
// Config file may exist at the root of the Git repo.
1496+
set configFilePath = ##class(%File).NormalizeFilename(##class(SourceControl.Git.Settings.Document).#EXTERNALNAME, ..TempFolder())
1497+
if ##class(%File).Exists(##class(%File).NormalizeFilename(configFilePath)) {
1498+
set itemList(..NameToInternalName(configFilePath)) = ""
1499+
}
14941500

14951501
set mappingFileType = $order($$$SourceMapping(""))
14961502
while (mappingFileType '= "") {

0 commit comments

Comments
 (0)