Skip to content

Commit 01ee816

Browse files
authored
Merge pull request #589 from intersystems/issue-251
Fix CSP imports
2 parents 51e57b3 + 0013fbe commit 01ee816

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4747
- Fixed issue with saving multiple new no-folder mapping settings at the same time (#533)
4848
- Fixed sending OS error when git pull encounters error (#545)
4949
- Fixed suppressing editing of locked classes (#301)
50+
- Fixed importing CSP files (#251)
5051

5152
## [2.6.0] - 2024-10-07
5253

cls/SourceControl/Git/Utils.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,8 +1412,8 @@ ClassMethod ImportCSPFile(InternalName As %String) As %Status
14121412
if (cspFile=srcFile)||($$$isWINDOWS&&($ZCVT(cspFile,"l")=$ZCVT(srcFile,"l"))) {
14131413
Quit $$$OK
14141414
}
1415-
1416-
if '(##class(%File).Delete(cspFile) && ##class(%File).CopyFile(srcFile, cspFile)) {
1415+
// Delete original if exists, otherwise create new file
1416+
if '(##class(%File).CopyFile(srcFile, cspFile, 1)) {
14171417
set sc = $$$ERROR($$$GeneralError, "Unable to import '"_srcFile_"'")
14181418
}
14191419

0 commit comments

Comments
 (0)