• Thanh Ha's avatar
    git-prompt: fix error when multiple tags exist (#6998) · 5fa7824e
    Thanh Ha authored
    When a commit has multiple tags associated to it, the git-prompt will
    throw the following error:
    
    git_super_status:[:4: integer expression expected: v0.21.x\ntags/v0.21.5,
    git_super_status:[:7: integer expression expected: origin/v0.21.x,
    git_super_status:[:11: integer expression expected: origin/v0.21.x,
    git_super_status:[:14: integer expression expected: v0.21.x
    git_super_status:[:23: integer expression expected: v0.21.x
    
    This is due to the prompt expecting the tag field to be a single word
    with no spaces in between but if there are multiple tags the python
    script returns a string with ', ' space separated list of tags.
    This throws off the parser. The solution is to ensure that the python
    script returns a space-less string ensuring the git-prompt parser to
    properly parse the data.
    Signed-off-by: 's avatarThanh Ha <zxiiro@linux.com>
    5fa7824e
Name
Last commit
Last update
cache Loading commit data...
custom Loading commit data...
lib Loading commit data...
log Loading commit data...
plugins Loading commit data...
templates Loading commit data...
themes Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
oh-my-zsh.sh Loading commit data...