Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-7472

Git credentials helper - aws-cli not in path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 4.0, 4.0.2
    • 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.

       

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

                Created:
                Updated: