Skip to content

Commit 787446c

Browse files
authored
Merge pull request #37 from github/clean-test-repos
Tidy up the test repositories.
2 parents 6ab28ef + 45e3152 commit 787446c

File tree

6 files changed

+3
-21
lines changed

6 files changed

+3
-21
lines changed

internal/pull/pull_test/codeql-action-initial.git/info/exclude

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ref: refs/heads/v4
1+
ref: refs/heads/main

internal/pull/pull_test/codeql-action-modified.git/info/exclude

Lines changed: 0 additions & 6 deletions
This file was deleted.

internal/push/push.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (pushService *pushService) pushGit(repository *github.Repository, initialPu
133133
}
134134

135135
_ = gitRepository.DeleteRemote(remoteName)
136-
gitRemote, err := gitRepository.CreateRemote(&config.RemoteConfig{
136+
_, err = gitRepository.CreateRemote(&config.RemoteConfig{
137137
Name: remoteName,
138138
URLs: []string{remoteURL},
139139
})
@@ -169,7 +169,7 @@ func (pushService *pushService) pushGit(repository *github.Repository, initialPu
169169
}
170170
}
171171
for _, refSpecs := range refSpecBatches {
172-
err = gitRemote.PushContext(pushService.ctx, &git.PushOptions{
172+
err = gitRepository.PushContext(pushService.ctx, &git.PushOptions{
173173
RemoteName: remoteName,
174174
RefSpecs: refSpecs,
175175
Auth: credentials,

internal/push/push_test/action-cache-initial/git/info/exclude

Lines changed: 0 additions & 6 deletions
This file was deleted.

internal/push/push_test/action-cache-initial/git/refs/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)