alibaba / git-repo-go

git-repo is a command-line tool for centralized workflow, can work with Gerrit, AGit-Flow compatible servers. It is written in Golang, and it can be installed easily without further dependency. It provides an easy-to-use solution for multiple repositories which is introduced by Android repo first, and it can also work with a single repository.
https://git-repo.info/
Apache License 2.0
262 stars 60 forks source link

remote 'origin' for project is not reviewable while executing command "git pr" #33

Closed robertzhangwenjie closed 1 year ago

robertzhangwenjie commented 2 years ago

➜ InterfaceTestingFramework git:(master) git pr Error: remote 'origin' for project 'InterfaceTestingFramework' is not reviewable

jiangxin commented 2 years ago

Sorry for the late response, I did not notice this issue during the National Day holiday.

Please report details:

  1. Versions of git and git-repo.
  2. What is the URL of remote "origin"? Show it using "git remote get-url origin"
  3. Turn on verbose output by running "git pr -vv"
xlmeng1988 commented 1 year ago

I got he following verbose output:

$ git pr -vv DEBUG: get ssh_info from command: ssh gitlab@gitlab.xxx.com ssh_info DEBUG: fail to check ssh_info for SSH protocol, will check HTTP instead DEBUG: get ssh_info from API: https://gitlab.xxx.com/ssh_info DEBUG: fail to get proxy from git config: http.proxy is not set DEBUG: get ssh_info from API: http://gitlab.xxx.com/ssh_info DEBUG: 404: bad ssh_info response of 'http://gitlab.xxx.com/ssh_info' Error: remote 'origin' for project 'test' is not reviewable

jiangxin commented 1 year ago

Only a few servers including devops.aliyun.com are supported. The servers must implement :

siennathesane commented 1 year ago

go-gitea/gitea#27014 and go-gitea/gitea#27021 will formally enable this for Gitea, but it has been supported since 1.13.