Replace environement variable in a pre-commit

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • None
    • Affects Version/s: Atlassian launch
    • Component/s: Git
    • None
    • Severity 3 - Minor

      When I run run commits for the CLI the environment variable on my mac is properly replaced. But when I try to commit from SourceTree it fails, and I get this error message: 
      ```
      husky > pre-commit (node v14.16.1)
      Error: Failed to replace env in config: ${GITHUB_TOKEN}
      ```

      An issue on the husky repo reports other users who experienced the same with Sourcetree. https://github.com/typicode/husky/issues/131
      When I run commands from command line, or via VSCode or Inteelij it succeeds. 

              Assignee:
              Raman Sidarakin (Inactive)
              Reporter:
              Ben Carp
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: