Skip to content

Commit ae29d7e

Browse files
committed
Merge remote-tracking branch 'origin/main' into dependabot/npm_and_yarn/multi-a28ee524ce
2 parents b6a056d + 802480b commit ae29d7e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/utils/workloadUtils.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ describe('sparseCloneChart', () => {
411411
// Verify commit and push were called
412412
expect(mockGit.add).toHaveBeenCalledWith('.')
413413
expect(mockGit.commit).toHaveBeenCalledWith(`Add ${chartTargetDirName} helm chart`)
414-
expect(mockGit.pull).toHaveBeenCalledWith('origin', 'main', { '--rebase': null })
415-
expect(mockGit.push).toHaveBeenCalledWith('origin', 'main')
414+
expect(mockGit.pull).toHaveBeenCalledWith('origin', 'refs/heads/main', { '--rebase': null })
415+
expect(mockGit.push).toHaveBeenCalledWith('origin', 'refs/heads/main')
416416
})
417417

418418
test('handles Gitea URLs by encoding credentials', async () => {
@@ -801,8 +801,8 @@ describe('chartRepo', () => {
801801

802802
expect(mockGit.add).toHaveBeenCalledWith('.')
803803
expect(mockGit.commit).toHaveBeenCalledWith(`Add ${chartName} helm chart`)
804-
expect(mockGit.pull).toHaveBeenCalledWith('origin', 'main', { '--rebase': null })
805-
expect(mockGit.push).toHaveBeenCalledWith('origin', 'main')
804+
expect(mockGit.pull).toHaveBeenCalledWith('origin', 'refs/heads/main', { '--rebase': null })
805+
expect(mockGit.push).toHaveBeenCalledWith('origin', 'refs/heads/main')
806806
})
807807
})
808808

src/utils/workloadUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ export class chartRepo {
239239
async commitAndPush(chartName: string) {
240240
await this.git.add('.')
241241
await this.git.commit(`Add ${chartName} helm chart`)
242-
await this.git.pull('origin', 'main', { '--rebase': null })
243-
await this.git.push('origin', 'main')
242+
await this.git.pull('origin', 'refs/heads/main', { '--rebase': null })
243+
await this.git.push('origin', 'refs/heads/main')
244244
}
245245
}
246246

0 commit comments

Comments
 (0)