Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misinforming message #4789

Open
1 task
jetgamesdev opened this issue Feb 2, 2024 · 5 comments
Open
1 task

Misinforming message #4789

jetgamesdev opened this issue Feb 2, 2024 · 5 comments

Comments

@jetgamesdev
Copy link

jetgamesdev commented Feb 2, 2024

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
  • 64
$ git --version --build-options

git version 2.35.3.windows.1
cpu: x86_64
built from commit: b952ed2af65bd726a4d21270bc3911db79873fe2
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
  • Windows 10
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.19045.3930]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
    -Defaults

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Fork

git clone
  • What did you expect to occur after running these commands?

cloning the remote repo

  • What actually happened instead?

fatal error

image
Finnaly, closer to the point, this message telling us is the PATH already exist, but actually problem not in the path, you may get this error even if you dont have this folder, the problem is you have ANOTHER folder in parent folder with this repository you trying to clone. That's it, message is juss missinforming about the path.

@rimrul
Copy link
Member

rimrul commented Feb 2, 2024

Please provide an MCVE for how to produce this message without the path in the message existing.

@dscho
Copy link
Member

dscho commented Feb 2, 2024

Have you actually followed the advice and looked whether C:\Projects\gocharacterstool exists and contains files already (even hidden files count, Git can see them)?

@jetgamesdev
Copy link
Author

Have you actually followed the advice and looked whether C:\Projects\gocharacterstool exists and contains files already (even hidden files count, Git can see them)?

yes. this path not exist

@jetgamesdev
Copy link
Author

Please provide an MCVE for how to produce this message without the path in the message existing.

git clone repo parentFolder/path1
git clone repo parentFolder/path2
this message appears saying path2 already exist

@rimrul
Copy link
Member

rimrul commented Feb 3, 2024

Please provide an MCVE for how to produce this message without the path in the message existing.

git clone repo parentFolder/path1 git clone repo parentFolder/path2 this message appears saying path2 already exist

This doesn't reproduce.
This is what I did:

cd /tmp
mkdir issue4789
git clone https://github.com/git/git issue4789/git1
git clone https://github.com/git/git issue4789/git2

No error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants