{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/projectile/issues/712","repository_url":"https://api.github.com/repos/bbatsov/projectile","labels_url":"https://api.github.com/repos/bbatsov/projectile/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/projectile/issues/712/comments","events_url":"https://api.github.com/repos/bbatsov/projectile/issues/712/events","html_url":"https://github.com/bbatsov/projectile/issues/712","id":68693553,"number":712,"title":"Use only topmost .git as project","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars0.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-04-15T14:11:47Z","updated_at":"2017-03-18T05:48:51Z","closed_at":null,"body":"Hi!\n\nI am working on a codebase that is highly submodulized, which means I always want to jump between submodules and thus would like `projectile` to always simply use the topmost `.git` as project root, and not a submodule. I have tried moving `\".git\"` between `projectile-project-root-files-bottom-up` and `projectile-project-root-files-top-down` without being able to to achieve this effect.\n\nIs there any way to get what I want?\n\nIf not, would you like me to add this to the software or should I just go ahead and submit a PR myself?\n\nThanks!\n"},"comment":{"url":"https://api.github.com/repos/bbatsov/projectile/issues/comments/287518843","html_url":"https://github.com/bbatsov/projectile/issues/712#issuecomment-287518843","issue_url":"https://api.github.com/repos/bbatsov/projectile/issues/712","id":287518843,"user":{"login":"jgkamat","id":4349709,"avatar_url":"https://avatars1.githubusercontent.com/u/4349709?v=3","gravatar_id":"","url":"https://api.github.com/users/jgkamat","html_url":"https://github.com/jgkamat","followers_url":"https://api.github.com/users/jgkamat/followers","following_url":"https://api.github.com/users/jgkamat/following{/other_user}","gists_url":"https://api.github.com/users/jgkamat/gists{/gist_id}","starred_url":"https://api.github.com/users/jgkamat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgkamat/subscriptions","organizations_url":"https://api.github.com/users/jgkamat/orgs","repos_url":"https://api.github.com/users/jgkamat/repos","events_url":"https://api.github.com/users/jgkamat/events{/privacy}","received_events_url":"https://api.github.com/users/jgkamat/received_events","type":"User","site_admin":false},"created_at":"2017-03-18T05:48:51Z","updated_at":"2017-03-18T05:48:51Z","body":"After a ton of debugging/searching around, I think I finally have a solution for myself, and I'd thought I'd share, since no one has a good solution here. \r\n\r\nFirst off, the [documentation on the subject sucks](https://github.com/bbatsov/projectile/blob/master/doc/configuration.md#custom-completion-function), and probably needs to be overhauled.\r\n\r\nAs far as I know, the bottom-up list searches for projects from the current directory up, which is prefect for finding .git folders and other VCS. The bottom-down search searches down from the current directory, making it possible to find projects that are under the current directory. The `projectile-project-root-files-functions` variable controls which one of these strategies run. \r\n\r\nFor me, I'm still running into the original issue (where submodules are their own project), and I fixed it by making the `.git` in the bottom-up list to be a folder (`.git/`) instead of a file (`.git`), since submodules have _files_ as their `.git` instead of folders.\r\n\r\nIf you are having the reverse problem, I would double check your configuration (make sure you are using stock configs) and if you are, then remove or reorder `projectile-root-bottom-up` in `projectile-project-root-files-functions`.\r\n\r\nMy final adjustments to solve this issue for me:\r\n\r\n```\r\n(setq projectile-project-root-files-bottom-up\r\n        (remove \".git\" projectile-project-root-files-bottom-up))\r\n(add-to-list 'projectile-project-root-files \".git/\")\r\n```\r\n"}}
{"actor":{"display_login":"jgkamat"}}