mirror of
https://github.com/gogs/gogs.git
synced 2025-05-31 11:42:13 +00:00
repo: remove hard-coded branch name in init (#6999)
This commit is contained in:
parent
ccdcb1c45b
commit
09ddb8761f
@ -23,6 +23,7 @@ All notable changes to Gogs are documented in this file.
|
||||
### Fixed
|
||||
|
||||
- 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
|
||||
|
||||
|
@ -923,7 +923,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user