Skip to content

Commit afb1eab

Browse files
authored
Merge branch 'main' into fix-mappings-ui
2 parents 68c7d45 + 84b78d6 commit afb1eab

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Fixed
1414
- Studio export path doesn't get weird mixed slahes on Windows (#252)
1515
- Fixed bug with adding mappings through the Settings page (#270)
16+
- Pulling add/delete of multiple non-IRIS files no longer causes error (#273)
1617

1718
## [2.2.0] - 2023-06-05
1819

cls/SourceControl/Git/Utils.cls

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,11 +409,15 @@ ClassMethod Pull(remote As %String = "origin", preview As %Boolean = 0) As %Stat
409409
while(key '= "") {
410410
set modification = files(key)
411411
if (modification.changeType = "D"){
412-
set deletedFiles = deletedFiles_","_modification.internalName
412+
if (modification.internalName '= "") {
413+
set deletedFiles = deletedFiles_","_modification.internalName
414+
}
413415
} elseif (modification.changeType = "A"){
414416
set modification.internalName = ##class(SourceControl.Git.Utils).NameToInternalName(modification.externalName,,0)
415-
set addedFiles = addedFiles_","_modification.internalName
416-
set files(key) = modification
417+
if (modification.internalName '= "") {
418+
set addedFiles = addedFiles_","_modification.internalName
419+
set files(key) = modification
420+
}
417421
}
418422
set key = $order(files(key))
419423
}
@@ -1983,3 +1987,4 @@ ClassMethod BuildCEInstallationPackage(ByRef destination As %String) As %Status
19831987
}
19841988

19851989
}
1990+

0 commit comments

Comments
 (0)