repo: remove hard-coded branch name in init (#6999)

pull/7785/head
Joe Chen 2022-06-03 17:14:21 +08:00
parent 7f8799c01f
commit 42ad18a245
No known key found for this signature in database
GPG Key ID: 0BDE5280C552FF60
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ All notable changes to Gogs are documented in this file.
- _Security:_ OS Command Injection in file uploading. [#6968](https://github.com/gogs/gogs/issues/6968)
- _Security:_ Remote Command Execution in file editing. [#6555](https://github.com/gogs/gogs/issues/6555)
- Unable to use LDAP authentication on ARM machines. [#6761](https://github.com/gogs/gogs/issues/6761)
- Unable to init repository during creation on Windows. [#6967](https://github.com/gogs/gogs/issues/6967)
### Removed

View File

@ -912,7 +912,7 @@ func initRepoCommit(tmpPath string, sig *git.Signature) (err error) {
if _, stderr, err = process.ExecDir(-1,
tmpPath, fmt.Sprintf("initRepoCommit (git push): %s", tmpPath),
"git", "push", "origin", "master"); err != nil {
"git", "push"); err != nil {
return fmt.Errorf("git push: %s", stderr)
}
return nil