actions / checkout

Action for checking out a repo
https://github.com/features/actions
MIT License
5.95k stars 1.77k forks source link

`show-progress: false` should not add `--progress` flag to `git checkout` command #1956

Open liias opened 1 month ago

liias commented 1 month ago

I'm using the v4 and show-progress option is applied only to "Fetching the repository" git fetch command, but not the "Checking out the ref" git checkout command.

##[group]Run actions/checkout@v4
with:
  show-progress: false

git fetch correctly omits --progress flag:

##[group]Fetching the repository
[command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +mygithash:refs/remotes/pull/123/merge

git checkout falsely still includes --progress flag:

##[group]Checking out the ref
[command]/usr/bin/git checkout --progress --force refs/remotes/pull/123/merge