当尝试将更改推送到bitbucket.org时,我收到错误“abort:authorization failed”。我已将〜//。hgrc文件配置为以下
[web]
cacerts = /etc/hg-ca-roots.pem
allow_push = *
push_ssl = false
我知道我的登录凭证是正确的,因为它们在bitbucket.org上完美运行。我能够很好地提取内容,甚至可以毫无问题地使用$ hg outgoing命令。我做错了什么?
computer:~/desktop/sinebase chris$ hg push --debug
pushing to https://bitbucket.org/
using https://bitbucket.org/
sending between command
bitbucket.org certificate successfully verified
sending capabilities command
capabilities: changegroupsubset stream lookup pushkey unbundle=HG10GZ,HG10BZ,HG10UN branchmap
sending heads command
searching for changes
common changesets up to fa4942e93eea
sending branchmap command
1 changesets found
list of changesets:
5fbc99565b8647652145fcd6ac8c48b900418701
bundling: 0 changesets
bundling: 0 changesets
bundling: 0 changesets
bundling: 1 changesets
bundling: 0/1 manifests (0.00%)
bundling: 0/1 manifests (0.00%)
bundling: 0/1 manifests (0.00%)
bundling: 1/1 manifests (100.00%)
bundling: app/urls.py 0/1 files (0.00%)
bundling: app/urls.py 0/1 files (0.00%)
bundling: app/urls.py 0/1 files (0.00%)
bundling: app/urls.py 0/1 files (0.00%)
sending unbundle command
sending 375 bytes
sending: 0 kb
sending: 0 kb
http authorization required
realm: Bitbucket.org HTTP
user: ******
password:
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 0 kb
sending: 0 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 1 kb
sending: 1 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 1 kb
sending: 1 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 1 kb
sending: 1 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 2 kb
sending: 2 kb
http auth: user ******, password *********
bitbucket.org certificate successfully verified
sending: 2 kb
sending: 2 kb
abort: authorization failed
答案 0 :(得分:0)
如果它不是私人仓库,您可以在不进行身份验证的情况下拉出并执行传出,因此您的凭据仍然可能是错误的。请尝试下次使用--debug
。