Skip to content

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

Open
@liias

Description

@liias

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

Metadata

Metadata

Assignees

No one assigned

    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