diff options
author | zeripath <art27@cantab.net> | 2019-12-27 21:15:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-27 21:15:04 +0000 |
commit | 4acca9d2e8618a5283495fcd3b313fd53c953f18 (patch) | |
tree | 3c0cfba28db36ae362e257b3fafe43773e9f30d2 /models/repo_generate.go | |
parent | f2d03cda96eb5febbf9801f6b6cf5daa37220bc9 (diff) | |
download | gitea-4acca9d2e8618a5283495fcd3b313fd53c953f18.tar.gz gitea-4acca9d2e8618a5283495fcd3b313fd53c953f18.zip |
Properly enforce gitea environment for pushes (#9501)
#8982 attempted to enforce the gitea environment for pushes - unfortunately it tested the settings before they were actually read in - and therefore does not do that!
Diffstat (limited to 'models/repo_generate.go')
-rw-r--r-- | models/repo_generate.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_generate.go b/models/repo_generate.go index 98ef0ea000..556a5fc2f7 100644 --- a/models/repo_generate.go +++ b/models/repo_generate.go @@ -174,7 +174,7 @@ func generateRepoCommit(e Engine, repo, templateRepo, generateRepo *Repository, return fmt.Errorf("git remote add: %v", err) } - return initRepoCommit(tmpDir, repo.Owner) + return initRepoCommit(tmpDir, repo, repo.Owner) } // generateRepository initializes repository from template |