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

git unable to read current working directory no error #236

Closed
giacomocerquone opened this issue Dec 4, 2015 · 12 comments
Closed

git unable to read current working directory no error #236

giacomocerquone opened this issue Dec 4, 2015 · 12 comments

Comments

@giacomocerquone
Copy link

Hi, I'm working in windows 10. I updated github for windows right yesterday (actual version 3.0.9.0, don't know if it means something) and git --version returns git version 2.5.3.windows.1
Now my problem is that every command I try to execute with git it returns: git unable to read current working directory no error (obviously the working directory isn't absolutely empty, and I also tried to create a new directory and initialize a new repo wit git init but it returns always the same error).

To use git I edited the profile.ps1 of powershell in this way:
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
. $env:github_posh_git\profile.example.ps1

Could it possibly be a bug?

@dahlbyk
Copy link
Owner

dahlbyk commented Dec 4, 2015

Are you seeing that error in directories without a Git repo, directories with a Git repo, or both?

@giacomocerquone
Copy link
Author

Both

@giacomocerquone
Copy link
Author

I really don't know what to do, I must work on git and the GUI app is killing me

@dahlbyk
Copy link
Owner

dahlbyk commented Dec 4, 2015

I assume the error goes away if you comment out the line to include posh-git?

@dahlbyk
Copy link
Owner

dahlbyk commented Dec 4, 2015

(And probably reopen your prompt - it won't pick it up automatically.)

@giacomocerquone
Copy link
Author

If I remove those two lines to include git in powershell, obviously powershell doesn't even know what the command "git" is and others powershell's errors come up of course

@giacomocerquone
Copy link
Author

Ok, so I discovered that only the dir that contains 7/8 repo is not working. Could be this an ssd problem? Or should I change some configuration of that directory?

@dahlbyk
Copy link
Owner

dahlbyk commented Dec 4, 2015

only the dir that contains 7/8 repo is not working

What do you mean by "7/8 repo"?

The error doesn't seem like a real Git or posh-git error, so I tend to think it's some sort of repo or disk corrpution?

@giacomocerquone
Copy link
Author

I meant seven or eight folder where there were repos initialized in them! Honestly I thought was an SSD problem but I checked it and it's completely ok. It's strange that in whatever folder (located in the document folder) I try to initialize a git repo, it comes up with this error. Could be some directory permission problem?

@dahlbyk
Copy link
Owner

dahlbyk commented Dec 5, 2015

This looks like git-for-windows/git#473 - try some of the suggestions there?

@giacomocerquone
Copy link
Author

It seems to be the exact same problem and now that I think at it more carefully, it happened not only when Github was updated, but also when Windows 10 updated itself with the rollout of the new november version and in that situation some sort of siymlink could be created... Now I don't understand actually where I can find this symlink and delete it!

PS = It work if I specify the full path like so: C:\Users\username\Documents\Gitrepo

@dahlbyk
Copy link
Owner

dahlbyk commented Dec 5, 2015

Closing here in favor of that issue, since this isn't really specific to posh-git. Good luck!

@dahlbyk dahlbyk closed this as completed Dec 5, 2015
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

2 participants