GitTools / GitVersion

From git log to SemVer in no time
https://gitversion.net/docs/
MIT License
2.87k stars 654 forks source link

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

Closed GuidDotEmpty closed 1 month ago

GuidDotEmpty commented 1 month ago

Prerequisites

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
arturcic commented 1 month ago

gitversion init was removed in version 6 https://github.com/GitTools/GitVersion/pull/3899