Skip to content

Cannot init a git repository because I do not have access to one folder in the specified path: fatal: unable to get current working directory: No such file or directory #1944

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

Closed
rvignolo opened this issue Nov 21, 2018 · 4 comments

Comments

@rvignolo
Copy link

I was not able to init a git repository in the following path /c/I/cannot/access/to/this/path/but/I/can/access/to/this/one because I do not have permissions for the path /c/cannot/access/to/this/path/. I believe git fails when trying to set up the working directory with pwd or something like that. If I run pwd I do not get any error.

Thanks!

Setup

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

git version 2.16.2.windows.1
cpu: x86_64
built from commit: e1848984d1004040ec5199e749b5f282ddf4bb09
sizeof-long: 4
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 6.1.7601]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VIM
Path Option: BashOnly
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Disabled
Enable Symlinks: Disabled

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
Bash
git init
  • What did you expect to occur after running these commands?

I expected to init a git repository.

  • What actually happened instead?
fatal: unable to get current working directory: No such file or directory
@alegrigoriev
Copy link

This appears fixed in 4745fee

@dscho
Copy link
Member

dscho commented Dec 24, 2018

git version 2.16.2.windows.1

This version was released over 10 months ago, and the current Git for Windows version is v2.20.1. Care to give that version a go?

@dscho
Copy link
Member

dscho commented Feb 27, 2019

No? Well, then this ticket can be closed.

@dscho dscho closed this as completed Feb 27, 2019
@rvignolo
Copy link
Author

I am sorry for the delay. I was not able to update to the new version of git for windows at work... Thanks for your replies!

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

No branches or pull requests

3 participants