diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-06-11 21:50:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-11 21:50:14 +0800 |
commit | ce3dd04c63a048fe791ed864c2023fd37b09e427 (patch) | |
tree | 43ed415dc8d5647b59bf54fddceb4d4a63bcc456 /models/repo | |
parent | 88f2e457d891c4e91a9eddab8143d0109e08dfa9 (diff) | |
download | gitea-ce3dd04c63a048fe791ed864c2023fd37b09e427.tar.gz gitea-ce3dd04c63a048fe791ed864c2023fd37b09e427.zip |
Fix some mirror bugs (#18649)
* Fix some mirror bugs
* Remove unnecessary code
* Fix lint
* rename stdard url
* Allow more charactors in git ssh protocol url
* improve the detection
* support ipv6 for git url parse
* Fix bug
* Fix template
* Fix bug
* fix template
* Fix tmpl
* Fix tmpl
* Fix parse ssh with interface
* Rename functions name
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'models/repo')
-rw-r--r-- | models/repo/mirror.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/models/repo/mirror.go b/models/repo/mirror.go index bd83d24424..8f96e8cee1 100644 --- a/models/repo/mirror.go +++ b/models/repo/mirror.go @@ -19,12 +19,6 @@ import ( // ErrMirrorNotExist mirror does not exist error var ErrMirrorNotExist = errors.New("Mirror does not exist") -// RemoteMirrorer defines base methods for pull/push mirrors. -type RemoteMirrorer interface { - GetRepository() *Repository - GetRemoteName() string -} - // Mirror represents mirror information of a repository. type Mirror struct { ID int64 `xorm:"pk autoincr"` |