diff --git a/internal/pull/pull_test/codeql-action-initial.git/info/exclude b/internal/pull/pull_test/codeql-action-initial.git/info/exclude deleted file mode 100644 index a5196d1..0000000 --- a/internal/pull/pull_test/codeql-action-initial.git/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/internal/pull/pull_test/codeql-action-modified.git/HEAD b/internal/pull/pull_test/codeql-action-modified.git/HEAD index acc5d28..b870d82 100644 --- a/internal/pull/pull_test/codeql-action-modified.git/HEAD +++ b/internal/pull/pull_test/codeql-action-modified.git/HEAD @@ -1 +1 @@ -ref: refs/heads/v4 +ref: refs/heads/main diff --git a/internal/pull/pull_test/codeql-action-modified.git/info/exclude b/internal/pull/pull_test/codeql-action-modified.git/info/exclude deleted file mode 100644 index a5196d1..0000000 --- a/internal/pull/pull_test/codeql-action-modified.git/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/internal/push/push.go b/internal/push/push.go index 2c13508..fc1c522 100644 --- a/internal/push/push.go +++ b/internal/push/push.go @@ -133,7 +133,7 @@ func (pushService *pushService) pushGit(repository *github.Repository, initialPu } _ = gitRepository.DeleteRemote(remoteName) - gitRemote, err := gitRepository.CreateRemote(&config.RemoteConfig{ + _, err = gitRepository.CreateRemote(&config.RemoteConfig{ Name: remoteName, URLs: []string{remoteURL}, }) @@ -169,7 +169,7 @@ func (pushService *pushService) pushGit(repository *github.Repository, initialPu } } for _, refSpecs := range refSpecBatches { - err = gitRemote.PushContext(pushService.ctx, &git.PushOptions{ + err = gitRepository.PushContext(pushService.ctx, &git.PushOptions{ RemoteName: remoteName, RefSpecs: refSpecs, Auth: credentials, diff --git a/internal/push/push_test/action-cache-initial/git/info/exclude b/internal/push/push_test/action-cache-initial/git/info/exclude deleted file mode 100644 index a5196d1..0000000 --- a/internal/push/push_test/action-cache-initial/git/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/internal/push/push_test/action-cache-initial/git/refs/.gitkeep b/internal/push/push_test/action-cache-initial/git/refs/.gitkeep new file mode 100644 index 0000000..e69de29