# Problem

2 messages from 2024-07-27 to 2024-07-29. Participants: Michael Salman, brian m. carlson.
Thread: https://gitlist.dev/t/61856

## Michael Salman, 2024-07-27 22:38

Subject: Problem
Message-ID: <c35ed7ff-48b6-4555-baef-cccdc926e6ba@pathcom.com>
URL: https://gitlist.dev/e/c35ed7ff-48b6-4555-baef-cccdc926e6ba%40pathcom.com

```
Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
Using visual studio created a project and initialized it. Git works fine 
under vs
What did you expect to happen? (Expected behavior)
Using a command prompt I cd to where the repository is and give the 
command git status.
What happened instead? (Actual behavior)
It reports that this is not a valid repository. I noticed that the 
repository does not have a .git file
What's different between what you expected and what actually happened?
Using command prompt if I cd to a different repository (which has a .git 
file) the git status command works fine
Anything else you want to add:

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.45.2.windows.1
cpu: x86_64
built from commit: 91d03cb2e4fbf6ad961ace739b8a646868cb154d
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Windows 10.0 22631
compiler info: gnuc: 14.1
libc info: no libc information available
$SHELL (typically, interactive shell): <unset>


[Enabled Hooks]

```

## brian m. carlson, 2024-07-29 21:52

Subject: Re: Problem
Message-ID: <ZqgPJYH190j_4ZGM@tapette.crustytoothpaste.net>
URL: https://gitlist.dev/e/ZqgPJYH190j_4ZGM%40tapette.crustytoothpaste.net
In-Reply-To: <c35ed7ff-48b6-4555-baef-cccdc926e6ba@pathcom.com>

```
On 2024-07-27 at 22:38:22, Michael Salman wrote:
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
> 
> What did you do before the bug happened? (Steps to reproduce your issue)
> Using visual studio created a project and initialized it. Git works fine
> under vs
> What did you expect to happen? (Expected behavior)
> Using a command prompt I cd to where the repository is and give the command
> git status.
> What happened instead? (Actual behavior)
> It reports that this is not a valid repository. I noticed that the
> repository does not have a .git file
> What's different between what you expected and what actually happened?
> Using command prompt if I cd to a different repository (which has a .git
> file) the git status command works fine

A Git repository with a working tree doesn't strictly have to have a
`.git` file or directory, but if you don't have one, you have to
explicitly set configuration options or environment variables to make
this work.  Since I very much doubt that was done here, it sounds like
this actually is not a Git repository, and Visual Studio has a bug that
causes it to either misconfigure Git or not work with it properly.  It
should at least provide you sufficient information to allow you to
determine how it initialized the repository and where it's storing the
data so you can properly work with it using the command line tools.

In any event, this sounds like a Visual Studio bug and not a Git bug, so
I'd report it to the appropriate Visual Studio issue tracker.  I don't
think there's anything we can do here, since we don't know how Visual
Studio is invoking Git or how it's configuring the repository.
-- 
brian m. carlson (they/them or he/him)
Toronto, Ontario, CA

```
