atom-ungit
atom-ungit copied to clipboard
wrong repo dir is opened when paths have long common prefix
Steps to reproduce:
-
install atom, ungit, atom-ungit
-
add 2 projects to atom, which follow the following naming scheme:
/some/root/path/project-name
/some/root/path/project-name-suffix
of course both projects should be versioned in git
- create file in project
project-name-suffix, and open it in atom - click Ctrl+Alt+U (or whatever is your shortcut to open atom-ungit)
Expected result:
Page with git history of project-name-suffix opens.
Actual result:
Page with git history of project-name opens.
Tested on several of my repositories, e.g.
- https://github.com/mbdevpl/open-fortran-parser
- https://github.com/mbdevpl/open-fortran-parser-xml
which I both clone to /home/mb/Projects/fortran
And also pair of projects named flash and flash-subset.
Doesn't happen if projects are not stored in the same root path. For example it didn't happen to open-fortran-parser-xml until I moved it to the same root dir as open-fortran-parser...
Also, doesn't happen when I launch ungit through commandline.
Please let me know if you need more information.