Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
4.2.6
-
None
-
Severity 2 - Major
Description
Sourcetree for mac v.4.2.6
MacbookPro M1
zsh terminal
I have a custom env variable REGISTRY_TOKEN in my project. This variable is set in the system .zshrc file as export REGISTRY_TOKEN=abc as example
I have an error when try to commit.
*git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/3j/yrl5qmls62d4jrsg00gsb14h0000gn/T/SourceTreeTemp.kLBmAN -a
error Error: Failed to replace env in config: ${REGISTRY_TOKEN}
at /opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:94917:13
at String.replace (<anonymous>)
at envReplace (/opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:94912:16)
at Function.normalizeConfig (/opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:31941:69)
at NpmRegistry.<anonymous> (/opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:31971:34)
at Generator.next (<anonymous>)
at step (/opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:310:30)
at /opt/homebrew/Cellar/yarn/1.22.21/libexec/lib/cli.js:321:13
Completed with errors, see above*
I found only one way to solve this problem, open Sourcetree through the console. By "open /Applications/Sourcetree.app", and the application runs fine and the commit is successful..
Maybe there are other ways to solve the problem?