Merge pull request #1735 from s-ol/tmux-git-fix

Assume latest tmux version if -V returns 'master'
This commit is contained in:
Nikolai Aleksandrovich Pavlov 2017-03-18 18:45:49 +03:00 committed by GitHub
commit b4e9242807
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ def get_tmux_version(pl):
version_string = get_tmux_output(pl, '-V')
_, version_string = version_string.split(' ')
version_string = version_string.strip()
if version_string == 'master':
return TmuxVersionInfo(float('inf'), 0, version_string)
major, minor = version_string.split('.')
suffix = DIGITS.subn('', minor)[0] or None
minor = NON_DIGITS.subn('', minor)[0]