At present, "go to file" expects the file to be located relative to the current working directory. This commit still looks for the file at the current directory, but falls back to using the git root path. This enables "go to file" when the user is at a path inside the repository.
Does this pull request fix one issue?
Fixes #539
Describe how you did it
As above, fallback to using the git root path to find files.
Describe how to verify it
cd into a subdirectory of a git repository
Open a PR in Octo that has comments with tagged files
Press gf on one of those comments and it will now successfully take you to the tagged file
Describe what this PR does / why we need it
At present, "go to file" expects the file to be located relative to the current working directory. This commit still looks for the file at the current directory, but falls back to using the git root path. This enables "go to file" when the user is at a path inside the repository.
Does this pull request fix one issue?
Fixes #539
Describe how you did it
As above, fallback to using the git root path to find files.
Describe how to verify it
cd
into a subdirectory of a git repositorygf
on one of those comments and it will now successfully take you to the tagged fileSpecial notes for reviews