【发布时间】:2014-05-04 04:13:30
【问题描述】:
我根据 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 随机生成的。是这样吗?
以防万一,cs1 存储库中的 .hg/hgrc 如下所示:
[paths]
default = https://caliChander@bitbucket.org/caliChander/cs1
我在 OS X Mavericks 上。感谢您的帮助!
【问题讨论】: