mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
bug fixed
This commit is contained in:
parent
fc1419d763
commit
cf4123f3bc
2 changed files with 4 additions and 147 deletions
|
@ -58,7 +58,9 @@ func runUpdate(c *cli.Context) {
|
|||
repoName := os.Getenv("repoName")
|
||||
|
||||
log.Info("username", userName)
|
||||
log.Info("repoName", repoName)
|
||||
f := models.RepoPath(userName, repoName)
|
||||
log.Debug("f", f)
|
||||
|
||||
gitUpdate := exec.Command("git", "update-server-info")
|
||||
gitUpdate.Dir = f
|
||||
|
@ -140,7 +142,5 @@ func runUpdate(c *cli.Context) {
|
|||
if err = models.CommitRepoAction(int64(sUserId), userName,
|
||||
repos.Id, repoName, refName, &base.PushCommits{l.Len(), commits}); err != nil {
|
||||
log.Error("runUpdate.models.CommitRepoAction: %v", err)
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue