{"comment":{"created_at":"2011-10-19T14:41:35Z","body":"And the rabbit hole takes another twist.  What I said in the previous comment was true, but ONLY for the first time you `:Gcommit`.  After that, every time you try you get this:\r\n\r\n    \"~/src/pculture/unisubs.git/COMMIT_EDITMSG\" 14L, 510C written\r\n    Error detected while processing function <SNR>35_FinishCommit..<SNR>35_Commit:\r\n    line    7:\r\n    E344: Can't find directory \"`=s:repo().tree()`\" in cdpath\r\n    E472: Command failed\r\n    Error detected while processing function <SNR>35_FinishCommit:\r\n    line    4:\r\n    E171: Missing :endif\r\n    Press ENTER or type command to continue\r\n\r\nClosing Vim and reopening it lets you commit another time, then the error happens.","updated_at":"2011-10-19T14:41:35Z","url":"https://api.github.com/repos/tpope/vim-fugitive/issues/comments/2456551","id":2456551,"user":{"avatar_url":"https://secure.gravatar.com/avatar/143487689572bcc7084c2b6aa1f48c46?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"143487689572bcc7084c2b6aa1f48c46","url":"https://api.github.com/users/sjl","id":58365,"login":"sjl"}},"action":"created","issue":{"number":105,"created_at":"2011-09-02T17:38:55Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Whenever I commit or switch branches (either using :Git or on the command line), a subsequent :Gstatus gives me this error:\r\n\r\nError detected while processing function <SNR>21_BufReadIndex:\r\nline   21:\r\nE344: Can't find directory \"`=s:repo().tree()`\" in cdpath\r\nE472: Command failed\r\n\r\nI've tried this in old and new versions of fugitive and I get the same error. I have to restart vim to get it to work.","comments":15,"title":"Gstatus fails after change to HEAD","updated_at":"2011-10-19T14:41:35Z","url":"https://api.github.com/repos/tpope/vim-fugitive/issues/105","id":1553617,"assignee":null,"milestone":null,"closed_at":"2011-09-02T18:58:26Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/a0c80d5a6c736837b5248e6539c37d00?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a0c80d5a6c736837b5248e6539c37d00","url":"https://api.github.com/users/sofal","id":4759,"login":"sofal"},"html_url":"https://github.com/tpope/vim-fugitive/issues/105","labels":[],"state":"closed"},"legacy":{"issue_id":1553617,"comment_id":2456551}}