diff options
author | zeripath <art27@cantab.net> | 2020-10-13 17:24:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 00:24:06 +0800 |
commit | 2d75d6f664316cb01c179e8b3d382f8966b3f2f7 (patch) | |
tree | 1328f5567d0a51549ae0e4685fce1a92729fffc5 /services | |
parent | daa393cb48507f34e7d2b81b5a92f8f94ebe3ad0 (diff) | |
download | gitea-2d75d6f664316cb01c179e8b3d382f8966b3f2f7.tar.gz gitea-2d75d6f664316cb01c179e8b3d382f8966b3f2f7.zip |
Move update-server-info to hooks (#12826)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'services')
-rw-r--r-- | services/repository/push.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/services/repository/push.go b/services/repository/push.go index bd7ebe6748..762136fd08 100644 --- a/services/repository/push.go +++ b/services/repository/push.go @@ -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) |