From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9304 invoked by alias); 21 Nov 2013 01:45:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32032 Received: (qmail 8600 invoked from network); 21 Nov 2013 01:45:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=mdztpWK4L6VKc9GJMnhyslpmDHmGWzSomx3PtWJXrF4=; b=PusXXZJ9I46thk50sX/YZA6WnbRndt0KEW4l/06JCLPv4fGhzlbmcqTxp0lbgT5bpU W3A2HFTRjgLqD/G+sfl4DAvndmbJqS/yoBpK7+XDRLpdvc69fQFQYDfu3iG/Vwl0+1F8 vmiwKAXYHv0TIc2MtpO0LUlrp23BU7hNU6Dy8joJwzG9gqC6luoLQhJ6wqpW0VsB/ng0 8JP67tf1/zMXdkBIA8tiW12MlP2TkZtYuinhiEriNbv8sKBQLswEXs/zggG3fklJXplD ZIhfv8mQRjs5a1+6FJcdjtmweIKZ0C8YJxcDzVD8Hv6VevyPdl2p6dwa0GhtE3qLVUWv t1ag== X-Gm-Message-State: ALoCoQlcIewdOb+pijWK0gqIoz6t/v722yOelhtc2K5yzxlv4t2CcNe0l93O+lb19rtkCNvEKQ0z X-Received: by 10.66.8.66 with SMTP id p2mr3544872paa.129.1384998341747; Wed, 20 Nov 2013 17:45:41 -0800 (PST) Message-ID: <528D65C2.2080607@topbug.net> Date: Wed, 20 Nov 2013 17:45:38 -0800 From: Hong Xu User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: [BUG] vcs_info '%r' doesn't work properly when entered a subdirectory of a git repository through a symlink Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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