Skip to content

Commit efc97d5

Browse files
committed
Use /SHELL to avoid Linux permissions issues
Otherwise tries to use /root/.config/git/attributes - we need irisusr's profile for things to work right Fixes #231
1 parent 50446cf commit efc97d5

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 deined" 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
1415

cls/SourceControl/Git/Utils.cls

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

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

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

0 commit comments

Comments
 (0)