Skip to content

Checkout@v2 use Git branch --show-current which requires git 2.22.0 #121

@TingluoHuang

Description

@TingluoHuang

The v2 checkout uses git branch --show-current at https://github.com/actions/checkout/blob/master/src/git-command-manager.ts#L177

The --show-current was introduced in git 2.22.0 but the checkout@v2 only requires 2.18.0, when using checkout@v2 in a self-hosted runner, you will get an error about the --show-current option.

"H:\Program Files\Git\cmd\git.exe" branch --show-current
##[error]error: unknown option `show-current'

Seems like we need to bump the min required git version?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions