1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-04-22 16:06:35 +02:00

determine default branch (#278)

This commit is contained in:
eric sciple 2020-06-16 13:41:01 -04:00 committed by GitHub
parent 453ee27fca
commit 00a3be8934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 78 additions and 18 deletions

View file

@ -110,13 +110,6 @@ describe('input-helper tests', () => {
)
})
it('sets correct default ref/sha for other repo', () => {
inputs.repository = 'some-owner/some-other-repo'
const settings: IGitSourceSettings = inputHelper.getInputs()
expect(settings.ref).toBe('refs/heads/master')
expect(settings.commit).toBeFalsy()
})
it('sets ref to empty when explicit sha', () => {
inputs.ref = '1111111111222222222233333333334444444444'
const settings: IGitSourceSettings = inputHelper.getInputs()