Skip to content

[ISSUE]: Git shallow copy check fails #1089

@Codelet

Description

@Codelet

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?

After this change #1070 GitVersion GH action started to fail.
I assume git command is missing the working directory info there.

What is expected?

I expect it not to fail

Steps to Reproduce

  • Checkout code using checkout@v4 action
  • Use GitVersion setup action
  • Use GitVersion execute action

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

Run gittools/actions/gitversion/execute@v0
  with:
    targetPath: /home/runner/work/MyRepo/MyRepo/repo
    useConfigFile: true
    configFilePath: /home/runner/work/MyRepo/MyRepo/repo/build/GitVersion.yml
    disableCache: false
    disableNormalization: false
    updateAssemblyInfo: false
  env:
    DOTNET_ROOT: /usr/share/dotnet
    DOTNET_CLI_TELEMETRY_OPTOUT: true
    DOTNET_NOLOGO: true
Agent: 'GitHub Actions'
Command: git rev-parse --is-shallow-repository
/usr/bin/git rev-parse --is-shallow-repository
fatal: not a git repository (or any of the parent directories): .git
Error: Error: The process '/usr/bin/git' failed with exit code 128

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions