actions: [ISSUE]: unsupported extension name extensions.worktreeconfig

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

GitHub Actions

What are you seeing?

Run gittools/actions/gitversion/execute@v0
  with:
    disableCache: false
    disableNormalization: false
    useConfigFile: false
    configFilePath: GitVersion.yml
    updateAssemblyInfo: false
    
Agent: 'GitHub Actions'
Command: git rev-parse --is-shallow-repository
/usr/bin/git rev-parse --is-shallow-repository
false
Command: dotnet-gitversion /home/ubuntu/_work/***/*** /output json /output buildserver
/home/ubuntu/_work/_tool/GitVersion.Tool/5.12.0/x64/dotnet-gitversion /home/ubuntu/_work/***/*** /output json /output buildserver
INFO [03/12/24 12:04:45:30] Working directory: /home/ubuntu/_work/***/***
unsupported extension name extensions.worktreeconfig
INFO [03/12/24 12:04:45:33] Done writing 
Error: Error: The process '/home/ubuntu/_work/_tool/GitVersion.Tool/5.12.0/x64/dotnet-gitversion' failed with exit code 1

What is expected?

To continue instead of halt.

/usr/bin/git version
  git version 2.34.1

Steps to Reproduce

It worked until now, so it probably was introduced in a recent commit

Output log or link to your CI build (if appropriate).

No response

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 15 (8 by maintainers)

Commits related to this issue

Most upvoted comments

The hotfix seems to work:

Run gittools/actions/gitversion/execute@main
Agent: 'GitHub Actions'
Command: git -C /home/ubuntu/_work/***/*** rev-parse --is-shallow-repository
/usr/bin/git -C /home/ubuntu/_work/***/*** rev-parse --is-shallow-repository
false
Command: dotnet-gitversion /home/ubuntu/_work/***/*** /output json /output buildserver
/home/ubuntu/_work/_tool/GitVersion.Tool/5.12.0/x64/dotnet-gitversion /home/ubuntu/_work/***/*** /output json /output buildserver
INFO [03/12/24 13:46:50:83] Working directory: /home/ubuntu/_work/***/***

Thank you for confirmation. Anyway I will add the possibility to disable the check, by default it will be checking for shallow clone