Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange commit message #107

Closed
alok opened this issue Nov 23, 2016 · 11 comments
Closed

strange commit message #107

alok opened this issue Nov 23, 2016 · 11 comments

Comments

@alok
Copy link

alok commented Nov 23, 2016

I'm using latest version of next and I hit CC and it prefills the commit message Bulk Update. None of my commit messages for that repo have that message. I'm really confused here as to why that's being added. Is it a vimagit feature that I'm unaware of?

@alok
Copy link
Author

alok commented Nov 23, 2016

It adds that line over and over every time I do an action like refreshing the buffer. Here's a gist of profiling that shows which functions are called.

@jreybert
Copy link
Owner

I don't know from were this message could be from...

Could you please:

  • grep -R your .vim directory to check if this message is a side effect of your configuration
  • Precise what is your vim (or neovim) version and your git version

@alok
Copy link
Author

alok commented Nov 23, 2016

git version 2.7.0.25.gfc10eb5
NVIM v0.2.0-104-g5f02608

Nothing comes up with grep, even under case-insensitive search.

@jreybert
Copy link
Owner

Did you try with vim -U none, and load only vimagit to check if there a side effect from another plugin or a setting in your vimrc?

If you can determinate that only vimagit is in fault, could you please try to dump some debug traces?
in vimagit buffer, type this:

:set verbosefile=/tmp/vimagit.log
:XXverbose call magit#update_buffer()

Try with XX from 1 to 20, and stop when you encounter Bulk Update in verbose file.

@jreybert
Copy link
Owner

@alok do you still encounter this problem?

@alok
Copy link
Author

alok commented Feb 24, 2017

Sometimes, but I'm never able to reproduce it consistently, so I've basically given up on it.

@jreybert
Copy link
Owner

Next time you encouter it, please try this:

:set verbosefile=/tmp/vimagit.log
:XXverbose call magit#update_buffer()

@jreybert
Copy link
Owner

One more thing: when you say you can't reproduce it, do you mean that if it appears a first time, if you go out commit and retry CC, it does not appear again?

@ramok
Copy link

ramok commented Mar 29, 2017

Step for reproduce:

  1. Stage some hunk
  2. CC start writing commit message
  3. Press '?' in command mode to show help.
    Help will rewrite commit message
  4. Press '?' again. In commit message I get left
   amend) with message written in this section

==============

  1. Pressing '?' again and again add two lines every time

==============

@jreybert
Copy link
Owner

@ramok, the bug you are describing looks like #110 . It has been fixed in last release 1.7.0. Which vimagit version are you using? (SHA1)

@ramok
Copy link

ramok commented Mar 30, 2017

My bad. It's was old verision. After update everything fine. Thanks

@jreybert jreybert closed this as completed Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants