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:
parent
453ee27fca
commit
00a3be8934
7 changed files with 78 additions and 18 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue