Git credentials helper - aws-cli not in path

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 4.0, 4.0.2
    • Component/s: General, Git
    • Severity 3 - Minor

      If you follow the AWS CodeCommit documentation it instructs to run the commands:

      git config --global credential.helper '!aws codecommit credential-helper $@'
      git config --global credential.UseHttpPath true

      https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-unixes.html#setting-up-https-unixes-credential-helper

      However when running in Sourcetree this throws an error:

      aws codecommit credential-helper $@ get: aws: command not found

      If you change the command to point to the full path of aws-cli then the command work correctly:

      git config --global credential.helper '/usr/local/bin/aws codecommit credential-helper $@'

      Therefore it seems Sourcetree is not pulling in the path for aws-cli like other terminal windows?

      Really this feature should be supported out-of-the-box, and we shouldn't have to put full paths in our scripts.

       

            Assignee:
            Unassigned
            Reporter:
            Kim T
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: