RT: 休息api:
'POST /changes/{change-id}/revisions/{revision-id}/cherrypick'
错误:
fatal: ambiguous argument 'refs/heads/refs/heads/xxxbranch': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
如何解决此错误?谢谢!
答案 0 :(得分:0)
您的请求正文似乎有问题。您的“目的地”字段值是多少?
我能够使用以下命令正确地选择更改:
curl --request POST -d@- --header Content-Type:application/json https://GERRIT-SERVER/a/changes/CHANGE-NUMBER/revisions/REVISION-NUMBER/cherrypick <<EOF
{
"message": "Test Cherrypick using REST",
"destination": "feature3"
}
EOF