From 42ad18a245c3ad75e93036562ee600cd3544949c Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Fri, 3 Jun 2022 17:14:21 +0800 Subject: [PATCH] repo: remove hard-coded branch name in init (#6999) --- CHANGELOG.md | 1 + internal/db/repo.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d159bfa0..be3aa0289 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/internal/db/repo.go b/internal/db/repo.go index dcdf47da3..803891e7a 100644 --- a/internal/db/repo.go +++ b/internal/db/repo.go @@ -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