Skip to content

Commit 410478b

Browse files
Fix a typo.
Co-authored-by: Simon Engledew <[email protected]>
1 parent 9a5e079 commit 410478b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/push/push.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (pushService *pushService) pushGit(repository *github.Repository, initialPu
212212
}
213213
refSpecBatches = append(refSpecBatches, deleteRefSpecs)
214214

215-
defaultBrachRefSpec := "+refs/heads/main:refs/heads/main"
215+
defaultBranchRefSpec := "+refs/heads/main:refs/heads/main"
216216
if initialPush {
217217
releasePathStats, err := ioutil.ReadDir(pushService.cacheDirectory.ReleasesPath())
218218
if err != nil {
@@ -232,7 +232,7 @@ func (pushService *pushService) pushGit(repository *github.Repository, initialPu
232232
// We've got to push the default branch on its own, so that it will be made the default branch if the repository has just been created. We then push everything else afterwards.
233233
refSpecBatches = append(refSpecBatches,
234234
[]config.RefSpec{
235-
config.RefSpec(defaultBrachRefSpec),
235+
config.RefSpec(defaultBranchRefSpec),
236236
},
237237
[]config.RefSpec{
238238
config.RefSpec("+refs/*:refs/*"),

0 commit comments

Comments
 (0)