mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 02:21:17 +02:00
Move update-server-info to hooks (#12826)
Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
1 parent
daa393cb48
commit
2d75d6f664
2 files changed
+6
-4
No files matched your search
@@ -180,10 +180,6 @@ func pushUpdates(optsList []*PushUpdateOptions) error {
|
||||
}
|
||||
|
||||
repoPath := repo.RepoPath()
|
||||
_, err = git.NewCommand("update-server-info").RunInDir(repoPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed to call 'git update-server-info': %v", err)
|
||||
}
|
||||
gitRepo, err := git.OpenRepository(repoPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("OpenRepository: %v", err)
|
||||
|
||||
Reference in new issue
Block a user