Fix recycled pointer for info.RemoteInfo

This commit is contained in:
2024-01-17 14:10:26 -05:00
parent c36607c62d
commit 1c373ff00f
4 changed files with 19 additions and 15 deletions

View File

@ -15,10 +15,10 @@ const (
// Globally shared info for all remote types
// Stub package to prevent import cycle
type RemoteInfo struct {
Ctx context.Context
Host string
Name string
Token string
Type string
CloneProto CloneProto
Ctx context.Context // Base context for all API calls
Host string // Host as URL with protocol (e.g. https://gitlab.com)
Name string // Human-friendly name for remote
Token string // API token for remote
Type string // Remote type (e.g. gitlab, gitea)
CloneProto CloneProto // CloneProto (ssh or http) determines what url to use for git clone
}