{"action":"opened","issue":{"url":"https://api.github.com/repos/tpope/vim-rhubarb/issues/13","repository_url":"https://api.github.com/repos/tpope/vim-rhubarb","labels_url":"https://api.github.com/repos/tpope/vim-rhubarb/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/tpope/vim-rhubarb/issues/13/comments","events_url":"https://api.github.com/repos/tpope/vim-rhubarb/issues/13/events","html_url":"https://github.com/tpope/vim-rhubarb/issues/13","id":140513421,"number":13,"title":"incorrect path for config causes failures when trying to GCommit from a worktree","user":{"login":"RsrchBoy","id":59620,"avatar_url":"https://avatars.githubusercontent.com/u/59620?v=3","gravatar_id":"","url":"https://api.github.com/users/RsrchBoy","html_url":"https://github.com/RsrchBoy","followers_url":"https://api.github.com/users/RsrchBoy/followers","following_url":"https://api.github.com/users/RsrchBoy/following{/other_user}","gists_url":"https://api.github.com/users/RsrchBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/RsrchBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RsrchBoy/subscriptions","organizations_url":"https://api.github.com/users/RsrchBoy/orgs","repos_url":"https://api.github.com/users/RsrchBoy/repos","events_url":"https://api.github.com/users/RsrchBoy/events{/privacy}","received_events_url":"https://api.github.com/users/RsrchBoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-13T18:30:13Z","updated_at":"2016-03-13T18:30:13Z","closed_at":null,"body":"AFAICT, rubarb tries to load and scan through the repository's config file by looking for it at `plugin/rhubarb.vim` line 22:\r\n\r\n```viml\r\nfugitive#buffer().repo().dir('config')\r\n```\r\n\r\nHowever, for workdirs the config actually exists in the common dir, that is, if I have a repo `foo` with a worktree `bar`:\r\n\r\n`foo/` is the \"main\" worktree and repository (at `foo/.git/`);\r\n`bar/` is the worktree;\r\n`foo/.git/worktrees/bar/` is the worktree's \"git dir\";\r\n`foo/.git/config` is the config; and\r\n`bar/.git` is a file consisting of `gitdir: ../foo/.git/worktrees/bar/`.\r\n\r\n...so the viml used to generate the config file results in `.../foo/.git/worktrees/bar/config`, which in turn yields:\r\n\r\n```\r\nError detected while processing User Auto commands for \"Fugitive\":\r\nE484: Can't open file .../foo/.git/worktrees/bar/config\r\n```\r\n\r\n...and the \"sad trombones\" playing. :\\"}}