Skip to content

Commit 567dfda

Browse files
committed
Fix an issue with the tests where they update a file every time they are run.
1 parent c283978 commit 567dfda

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

internal/push/push.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ func (pushService *pushService) pushGit(repository *github.Repository, initialPu
162162
return errors.Wrap(err, "Error pushing Action to GitHub Enterprise Server.")
163163
}
164164
}
165+
166+
err = gitRepository.DeleteRemote(remoteName)
167+
if err != nil {
168+
return errors.Wrap(err, "Error removing repository remote.")
169+
}
165170
return nil
166171
}
167172

internal/push/push_test/action-cache-initial/git/config

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22
repositoryformatversion = 0
33
filemode = true
44
bare = true
5-
[remote "enterprise"]
6-
url = /tmp/codeql-action-sync-tests128816160/target
7-
fetch = +refs/heads/*:refs/remotes/enterprise/*

0 commit comments

Comments
 (0)