atom-ungit icon indicating copy to clipboard operation
atom-ungit copied to clipboard

wrong repo dir is opened when paths have long common prefix

Open mbdevpl opened this issue 7 years ago • 2 comments

Steps to reproduce:

  1. install atom, ungit, atom-ungit

  2. 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

  1. create file in project project-name-suffix, and open it in atom
  2. 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...

mbdevpl avatar Dec 21 '17 09:12 mbdevpl

Also, doesn't happen when I launch ungit through commandline.

mbdevpl avatar Dec 21 '17 09:12 mbdevpl

Please let me know if you need more information.

mbdevpl avatar Dec 21 '17 09:12 mbdevpl