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

Tig dies with error message when spamming G in main view #470

Closed
h3xx opened this issue Jan 14, 2016 · 2 comments
Closed

Tig dies with error message when spamming G in main view #470

h3xx opened this issue Jan 14, 2016 · 2 comments

Comments

@h3xx
Copy link
Contributor

h3xx commented Jan 14, 2016

Tig version: 88962f1
Git version: 2.6.4
Slackware Linux (x86_64)
Xterm

Steps to reproduce:

  1. Clone any git repository with a fair amount of history (jonas/tig works nicely).

    $ git clone https://github.com/jonas/tig.git
    $ cd tig

  2. Increase X11 keyboard repeat rate to something quick but manageable:

    $ xset r rate 145 45

  3. Open tig to the main view inside the git repo:

    $ TIGRC_USER=/dev/null tig

  4. Spam G a few times (hold down Shift+g)

Outcome:

Tig flashes a few times, then exits back to the prompt with the following error message:

tig: No revisions match the given arguments.

The flashes are because it's executing :toggle commit-title-graph and redrawing the digraph.

Trace output:

git rev-parse --git-dir --is-inside-work-tree --show-cdup --show-prefix HEAD --symbolic-full-name HEAD 
git config --list 
git show-ref --head --dereference 
git log --encoding=UTF-8 --topo-order --date=raw --parents --no-color --pretty=format:commit %m %H %P%x00%an <%ae> %ad%x00%s -- 
git status --porcelain -z --untracked-files=no 
git log --encoding=UTF-8 --topo-order --date=raw --parents --no-color --pretty=format:commit %m %H %P%x00%an <%ae> %ad%x00%s -- 
git status --porcelain -z --untracked-files=no 
git log --encoding=UTF-8 --date=raw --parents --no-color --pretty=format:commit %m %H %P%x00%an <%ae> %ad%x00%s -- 
git status --porcelain -z --untracked-files=no 
git log --encoding=UTF-8 --topo-order --date=raw --parents --no-color --pretty=format:commit %m %H %P%x00%an <%ae> %ad%x00%s -- 
git status --porcelain -z --untracked-files=no
@jonas jonas closed this as completed in 3ce0631 Apr 20, 2016
@jonas
Copy link
Owner

jonas commented Apr 20, 2016

Thanks for reporting this. Should be fixed even if it is a strange corner case.

@h3xx
Copy link
Contributor Author

h3xx commented Apr 20, 2016

Confirmed fixed. Tested version 3ce0631 (2016-04-19).

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants