We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d0b42 commit ca1307bCopy full SHA for ca1307b
build/internal/cmd/gitea/main.go
@@ -68,7 +68,7 @@ func main() {
68
fmt.Fprintln(os.Stderr, "Creating Repository from", *testdataDir)
69
70
repo, err := git.InitWithOptions(memory.NewStorage(), workdir, git.InitOptions{
71
- DefaultBranch: "main",
+ DefaultBranch: "refs/heads/main",
72
})
73
fatalOnError(err)
74
@@ -126,7 +126,7 @@ func main() {
126
repo.Push(&git.PushOptions{
127
Auth: &githttp.BasicAuth{Username: "root", Password: "password"},
128
RemoteName: "origin",
129
- RefSpecs: []config.RefSpec{"main:refs/heads/main"},
+ RefSpecs: []config.RefSpec{"refs/heads/main:refs/heads/main"},
130
131
fmt.Fprintln(os.Stderr, "Pushed")
132
0 commit comments