|
|
|
@@ -199,6 +199,11 @@ func HookPreReceive(ctx *macaron.Context, opts private.HookOptions) { |
|
|
|
env = append(env, |
|
|
|
private.GitQuarantinePath+"="+opts.GitQuarantinePath) |
|
|
|
} |
|
|
|
env = append(env, |
|
|
|
models.EnvRepoSize+"="+fmt.Sprint(repo.Size), |
|
|
|
models.EnvRepoMaxFileSize+"="+fmt.Sprint(setting.Repository.Upload.FileMaxSize), |
|
|
|
models.EnvRepoMaxSize+"="+fmt.Sprint(setting.Repository.RepoMaxSize), |
|
|
|
models.EnvPushSizeCheckFlag+"="+fmt.Sprint(setting.Repository.Upload.ShellFlag)) |
|
|
|
|
|
|
|
for i := range opts.OldCommitIDs { |
|
|
|
oldCommitID := opts.OldCommitIDs[i] |
|
|
|
|