Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

'autochdir' breaks :Gstatus preview #180

Closed
lucapette opened this Issue · 4 comments

2 participants

@lucapette

As per your request here.

Well, I used git bisect to find the commit. I tried Vim 7.3 and Vim 7.3.487 with a minimal configuration. Just fugitive and pathogen. The issue occurs only when I set autochdir in .vimrc. I reverted the issue (I know it's not the solution but could help knowing that) on master and it works fine.

Please tell me if you need more information to reproduce the issue.

@tpope
Owner

Initial impression: the bug was already there; this commit just made it more obvious. Could you try rolling back to an old, working version and then:

  • :echo expand('%:p')
  • Use - to stage something
  • :echo expand('%:p')

Are the paths the same? Look closely! I'm anticipating a double .git.

@lucapette

I've used this commit and the path are indentical. Both .git/index without the autochdir option and both /home/lucapette/code/test/.git/index when autochdir is on. Of course same environment as before, clean vim configuration with just fugitive and pathiogen.

I'm so sorry I can't help your plugins are awesome the problem (for me) is VimL ;) Anyway please tell me if there is anything else I can do to help.

@tpope tpope closed this issue from a commit
@tpope I hate 'autochdir'
Closes #180.
51de95d
@tpope tpope closed this in 51de95d
@tpope
Owner

I think you said that backwards. At any rate, it's solved. Thanks for the report.

@lucapette

Thank you for the fix. It's working great, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.