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

New pushurl field in ssh-info reponse #17

Closed jiangxin closed 3 years ago

jiangxin commented 3 years ago

Add new field pushurl in ssh-info reponse, and it will override the user, host and port field.

Macros "{email}", "{login}" in pushurl will be replaced using method helper.RelpaceMacros().

jiangxin commented 3 years ago

This pull request add test cases for pull request #16.

ratmice commented 3 years ago

Had a look through the patches and ran this branch, haven't really exercised the new features, but otherwise everything seems ok :+1: