diff options
author | Joe Chen <jc@unknwon.io> | 2022-06-03 17:14:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 17:14:21 +0800 |
commit | 09ddb8761ff758123f036c658bfab512ba795b98 (patch) | |
tree | a73e127f0eae9e7b2cfc2513e4cb0b1d413fe330 | |
parent | ccdcb1c45bdc3b85d5e6dcc7b96e9670281a83ac (diff) |
repo: remove hard-coded branch name in init (#6999)
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | internal/db/repo.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index ac522fc0..7ccddc06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/internal/db/repo.go b/internal/db/repo.go index 9f17b9a5..e044712b 100644 --- a/internal/db/repo.go +++ b/internal/db/repo.go @@ -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 |