summaryrefslogtreecommitdiffstats
path: root/modules/migrations/git.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-08-14 08:16:12 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-08-14 14:16:12 +0800
commit46d6b92ad04df87560ee12dfee58a5e8222e52ff (patch)
tree55d7a5ebf3292b79af4eca564f4bdc3f353f58e8 /modules/migrations/git.go
parent99a004c343ff0770af4e209ca4634b83f153a23c (diff)
downloadgitea-46d6b92ad04df87560ee12dfee58a5e8222e52ff.tar.gz
gitea-46d6b92ad04df87560ee12dfee58a5e8222e52ff.zip
Import topics during migration (#7851)
* add GetTopics interface * CreateTopics * remove un-needed comment
Diffstat (limited to 'modules/migrations/git.go')
-rw-r--r--modules/migrations/git.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/migrations/git.go b/modules/migrations/git.go
index 335d44ec9b..75d05976cd 100644
--- a/modules/migrations/git.go
+++ b/modules/migrations/git.go
@@ -38,6 +38,11 @@ func (g *PlainGitDownloader) GetRepoInfo() (*base.Repository, error) {
}, nil
}
+// GetTopics returns empty list for plain git repo
+func (g *PlainGitDownloader) GetTopics() ([]string, error) {
+ return []string{}, nil
+}
+
// GetMilestones returns milestones
func (g *PlainGitDownloader) GetMilestones() ([]*base.Milestone, error) {
return nil, ErrNotSupported