-
Type:
Bug
-
Resolution: Not a bug
-
Priority:
Low
-
None
-
Affects Version/s: 4.2.0
-
Component/s: Bitbucket
-
None
-
Severity 3 - Minor
System: OSX 12.6
Git version: 2.37.0 (Apple Git-136), installed by command-line-tools
Sourcetree: set the git to system one.
Git credential helper config:
helper = !aws --profile=saml codecommit credential-helper $@
helper = osxkeychain
Git credential helper config logic: git will visit the helper one by one to get the credential, the first returned one will be use. After user updated the credential, git will store them in every helper.
Scenario: use the aws code commit and Bitbucket repo in same env.
Expection: when visit aws repo, aws credential-helper will return the credential. When visit bitbucket, aws credential-helper won't return any credential, so git will ask osxkeychain to get the credential. In this way we can switch the aws and Bitbucket repo with no pain.
Actual performance: works well on cli, but if I open sourcetree, and want to use an aws repo, it will get the credential from osxkeychain, which is not correct.
Doubt: why sourcetree's performance is different from cli? Seems sourcetree doesn't follow the git config to call the credential helper?