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
Failed to retrieve information when remote starts with 'http' #36
Labels
bug
Something isn't working
Comments
muesli
added a commit
to muesli/go-git-1
that referenced
this issue
Jan 14, 2022
When fs.Stat returns an error, pathinfo may be nil. In such situations the only safe response seems to be to return the error to the caller. Without this fix, accessing pathinfo.IsDir() below would lead to a crash dereferencing a nil pointer. This crash can be reproduced by trying to initialize a Git repo with an invalid path name. Also see: muesli/gitty#36
mcuadros
pushed a commit
to go-git/go-git
that referenced
this issue
Jan 19, 2022
When fs.Stat returns an error, pathinfo may be nil. In such situations the only safe response seems to be to return the error to the caller. Without this fix, accessing pathinfo.IsDir() below would lead to a crash dereferencing a nil pointer. This crash can be reproduced by trying to initialize a Git repo with an invalid path name. Also see: muesli/gitty#36
muesli
added a commit
that referenced
this issue
Feb 1, 2022
muesli
added a commit
that referenced
this issue
Feb 1, 2022
gibchikafa
pushed a commit
to gibchikafa/go-git
that referenced
this issue
Nov 23, 2022
When fs.Stat returns an error, pathinfo may be nil. In such situations the only safe response seems to be to return the error to the caller. Without this fix, accessing pathinfo.IsDir() below would lead to a crash dereferencing a nil pointer. This crash can be reproduced by trying to initialize a Git repo with an invalid path name. Also see: muesli/gitty#36
durandj
pushed a commit
to durandj/go-git
that referenced
this issue
Jul 1, 2023
When fs.Stat returns an error, pathinfo may be nil. In such situations the only safe response seems to be to return the error to the caller. Without this fix, accessing pathinfo.IsDir() below would lead to a crash dereferencing a nil pointer. This crash can be reproduced by trying to initialize a Git repo with an invalid path name. Also see: muesli/gitty#36
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to run this command:
And it failed with this message:
If I try to run:
Then everything goes fine!
gitty version: gitty 0.6.0 (5c5b621)
OS: Windows 10 x64
Thanks
The text was updated successfully, but these errors were encountered: