From 3c49a6173d9cdf339f4a27d427a4cfc3dd51a24f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Mar 2022 00:55:36 +0800 Subject: mod: bump github.com/gogs/git-module from 1.2.0 to 1.4.0 (#6866) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Chen --- internal/db/repo.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/db/repo.go') diff --git a/internal/db/repo.go b/internal/db/repo.go index d6235282..1c85583a 100644 --- a/internal/db/repo.go +++ b/internal/db/repo.go @@ -419,7 +419,7 @@ func (repo *Repository) mustOwner(e Engine) *User { } func (repo *Repository) UpdateSize() error { - countObject, err := git.RepoCountObjects(repo.RepoPath()) + countObject, err := git.CountObjects(repo.RepoPath()) if err != nil { return fmt.Errorf("count repository objects: %v", err) } @@ -1979,7 +1979,7 @@ func GitFsck() { func(idx int, bean interface{}) error { repo := bean.(*Repository) repoPath := repo.RepoPath() - err := git.RepoFsck(repoPath, git.FsckOptions{ + err := git.Fsck(repoPath, git.FsckOptions{ Args: conf.Cron.RepoHealthCheck.Args, Timeout: conf.Cron.RepoHealthCheck.Timeout, }) @@ -2511,7 +2511,7 @@ func (repo *Repository) CreateNewBranch(oldBranch, newBranch string) (err error) return fmt.Errorf("create new branch [base: %s, new: %s]: %v", oldBranch, newBranch, err) } - if err = git.RepoPush(localPath, "origin", newBranch); err != nil { + if err = git.Push(localPath, "origin", newBranch); err != nil { return fmt.Errorf("push [branch: %s]: %v", newBranch, err) } -- cgit v1.2.3