0

我根据 1Pass 的瞭望塔推荐更改了我的 Bitbucket 密码。从那以后,尽管我可以通过浏览器登录,但我无法拉/推我的任何存储库。我已经尝试过 HTTP 和 SSH,但都不起作用。

这是一个示例输出。

hg pull --debug https://caliChander@bitbucket.org/caliChander/cs1
using https://bitbucket.org/caliChander/cs1
http auth: user caliChander, password not set
sending capabilities command
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
using auth.bitbucket.* for authentication
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
abort: authorization failed

我很好奇为什么当我~/.hgrc看起来像这样时它说“密码未设置”:

[ui]
username = First Last <some.email@random.com>
[auth]
bitbucket.prefix = bitbucket.org
bitbucket.username = caliChander
bitbucket.password = some_very_long_password_here
bitbucket.schemes = http https
[web]
cacerts = /etc/hg-dummy-cert.pem

我的直觉是密码字段中不允许使用某些字符?这是通过 1Pass 随机生成的。是这样吗?

以防万一, repo.hg/hgrc中的内容cs1如下所示:

[paths] default = https://caliChander@bitbucket.org/caliChander/cs1

我在 OS X Mavericks 上。谢谢您的帮助!

4

1 回答 1

1

我很好奇为什么它说“密码未设置”

因为 URL 可能同时包含用户名和密码,所以您https://caliChander@bitbucket.org/只有用户名部分

[ui] 部分与 auth-stage 无关(它只是信息数据,用于定义用户数据,显示在本地提交的日志中),只有来自 [auth] 的用户名-密码用于身份验证。您可以在 hgrc 中临时禁用密码并手动输入

于 2014-05-04T11:21:53.543 回答