Skip to content

[ISSUE]: init cannot find the .git directory #4221

@GuidDotEmpty

Description

@GuidDotEmpty

Prerequisites

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

GitVersion package

GitVersion.Tool

GitVersion version

6.0.2 6.0.2+Branch.main.Sha.30211316bc16e481dc440baae39ff904c4fa4966

Operating system

Windows

What are you seeing?

When running the command gitversion init in a repo i get the text
Cannot find the .git directory

What is expected?

I would expect to see output where i can setup my gitversion config

Steps to Reproduce

  1. Create an empty folder and open it
  2. Start a new command promt in the newly created folder
  3. Run git init
  4. Run gitversion init

RepositoryFixture Test

No response

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

PS C:\Temp\sdsd> git init
Initialized empty Git repository in C:/Temp/sdsd/.git/
PS C:\Temp\sdsd> gitversion init
Cannot find the .git directory
PS C:\Temp\sdsd> gitversion /version

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions