Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] vcs_info '%r' doesn't work properly when entered a subdirectory of a git repository through a symlink
- X-seq: zsh-workers 32032
- From: Hong Xu <hong@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [BUG] vcs_info '%r' doesn't work properly when entered a subdirectory of a git repository through a symlink
- Date: Wed, 20 Nov 2013 17:45:38 -0800
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi all,
The vcs_info '%r' generally works perfect, but when I symlinked a
subdirectory of the root dir of the git repository to somewhere else,
and cd from the symlink, '%r' doesn't show the correct value, while the
git repository can be recognized by zsh.
Example:
mkdir -p tmp/repo/sub
cd tmp/repo
git init
ln -s $(pwd)/sub $HOME/sub
cd ~/sub
Then you will see '%r' is not the root directory of the repo (for me
it's my home directory basename).
Thanks,
Hong
Messages sorted by:
Reverse Date,
Date,
Thread,
Author