diff options
author | Martin Hartkorn <github@hartkorn.net> | 2016-02-14 22:40:39 +0100 |
---|---|---|
committer | Martin Hartkorn <github@hartkorn.net> | 2016-02-14 22:40:39 +0100 |
commit | 15d37b7a95829e7551d843925fb034bbc613b8f2 (patch) | |
tree | 1eb40439feed2385a90271dca00065fbc73a6787 /models/repo.go | |
parent | 15394f613f7c03d23903d75f12ba018b3b76dffa (diff) | |
download | gitea-15d37b7a95829e7551d843925fb034bbc613b8f2.tar.gz gitea-15d37b7a95829e7551d843925fb034bbc613b8f2.zip |
Refactored according to suggestions
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go index 71493810f2..dfd07f1982 100644 --- a/models/repo.go +++ b/models/repo.go @@ -654,7 +654,7 @@ func MigrateRepository(u *User, opts MigrateRepoOptions) (*Repository, error) { return repo, UpdateRepository(repo, false) } - repo, err = FinishMigrateRepository(repo, repoPath) + repo, err = CleanUpMigrateInfo(repo, repoPath) if err != nil { return repo, err } @@ -663,7 +663,7 @@ func MigrateRepository(u *User, opts MigrateRepoOptions) (*Repository, error) { } // Finish migrating repository with things that don't need to be done for mirrors. -func FinishMigrateRepository(repo *Repository, repoPath string) (*Repository, error) { +func CleanUpMigrateInfo(repo *Repository, repoPath string) (*Repository, error) { if err := createUpdateHook(repoPath); err != nil { return repo, fmt.Errorf("createUpdateHook: %v", err) } |