Skip to content

Commit 26307da

Browse files
authored
Merge pull request #246 from intersystems/fix-linux-permissions
Use /SHELL to avoid Linux permissions issues
2 parents 6df6126 + 78fbfc2 commit 26307da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111
- Link from WebUI to Settings page works properly (#230)
12+
- No longer get a "permission denied" message on Linux (#231)
1213
- VSCode Web Views launch in external browser when connecting over unsecured connections (#227)
1314
- DTL/BPL editing through Studio reflected properly in source control (#241)
1415
- Plays nicely with interoperability "Deployment" features (#236)

cls/SourceControl/Git/Utils.cls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,8 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
14401440
set errLog = ##class(%Library.File).TempFilename()
14411441

14421442
set command = $extract(..GitBinPath(),2,*-1)
1443-
set returnCode = $zf(-100,"/STDOUT="_$$$QUOTE(outLog)_" /STDERR="_$$$QUOTE(errLog)_$case(inFile, "":"", :" /STDIN="_$$$QUOTE(inFile)),command,newArgs...)
1443+
// Need /SHELL on Linux to avoid permissions errors trying to use root's config
1444+
set returnCode = $zf(-100,"/SHELL /STDOUT="_$$$QUOTE(outLog)_" /STDERR="_$$$QUOTE(errLog)_$case(inFile, "":"", :" /STDIN="_$$$QUOTE(inFile)),command,newArgs...)
14441445

14451446
set errStream = ##class(%Stream.FileCharacter).%OpenId(errLog,,.sc)
14461447
set outStream = ##class(%Stream.FileCharacter).%OpenId(outLog,,.sc)

0 commit comments

Comments
 (0)