diff --git a/dev/archery/archery/crossbow/core.py b/dev/archery/archery/crossbow/core.py index d5ce6143136..24f68b4c4a6 100644 --- a/dev/archery/archery/crossbow/core.py +++ b/dev/archery/archery/crossbow/core.py @@ -200,7 +200,7 @@ def credentials(self, url, username_from_url, allowed_types): if (allowed_types & pygit2.credentials.GIT_CREDENTIAL_USERPASS_PLAINTEXT): - return pygit2.UserPass(self.token, 'x-oauth-basic') + return pygit2.UserPass('x-oauth-basic', self.token) else: return None