gitstatus icon indicating copy to clipboard operation
gitstatus copied to clipboard

Tags with slashes are ignored

Open romkatv opened this issue 4 years ago • 1 comments

Original report: https://www.reddit.com/r/zsh/comments/oz0xkt/p10k_not_showing_git_tags_with_slashes/

To reproduce:

❯ zsh -f
% mkdir /tmp/repo
% cd /tmp/repo
% git init
Initialized empty Git repository in /tmp/repo/.git/
% git commit --allow-empty -m first
[master (root-commit) 2d04980] first
% git tag foo/bar
% source ~/gitstatus/gitstatus.plugin.zsh
% gitstatus_start MY
% gitstatus_query MY
% typeset -p VCS_STATUS_TAG
typeset VCS_STATUS_TAG=''

The expected output from the last command:

typeset VCS_STATUS_TAG='foo/bar'

romkatv avatar Aug 06 '21 07:08 romkatv

Only loose tags are ignored. Packed tags are fine. To continue the list of commands from above:

% git pack-refs
% gitstatus_query MY
% typeset -p VCS_STATUS_TAG
typeset VCS_STATUS_TAG='foo/bar' 

romkatv avatar Aug 06 '21 07:08 romkatv