From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17991 invoked by alias); 4 Feb 2016 21:00:37 -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: 37883 Received: (qmail 10863 invoked from network); 4 Feb 2016 21:00:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=bft+P2RxPY65152NH1xg+NsSj3YhrQJRAQm0p5YsNrQ=; b=BsBeUfFxr8wMS+9pBASMqxB5idsvU9Ivfa7Y6JhhdqEAj79fT34WGWBgYbDvb93ZP+ 97O6u6+j+LKhdFtwDlp7gack1WyZubchv01lP0LPBvely92WOTP5xbG4XZNNJoL4e0o1 T8sl9hnGHdSayutPkSlYJGdBQYWoRfe01FsDijQByMQRIQr9ruzqawcZAMgK9br2zeJc i1HBmKIPzqMh6FJ0Qa2P1xiQeX6+TfQc9zU5YK89q+0sfbAb4XmsRkG5y3iwkPmY6pqG XvHn23MBOc0xW6OP59I16fVHlSyVMJ/i5RYvqeuiJNjyOk3xyFmAx0E4NbTDSkPysrCq KA0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=bft+P2RxPY65152NH1xg+NsSj3YhrQJRAQm0p5YsNrQ=; b=KH8QOjG1laMU/d3uK/zYkouLsswujslEnCaapM5ICvzs3IIAJW9Zr9U4RxkvUn8VgD BojxNdavPcnQx/u/OBuM8gUEccvkJMwf3lL0dAfkWMZ/QAGXGUi1ANq26Ejnu5Aizanx kchggfBdSHiLinguhgxjYis4xFUT44X9fxf254cXO0+WYPKLKPu/y/Fu1/r3mnBSDtQb OowT7erBeVxisuOB+z2EkN7cM0Fh1M6dIlx2phYPzvLszTNZGJgkZeh3Z0/npxysqVxm /4Adp+6C6HRk05spMHY2yjjmxjHURvHJF8fVezdMhJiira3WukX1F2FHnNLaDJnoIRvp jBDA== X-Gm-Message-State: AG10YOTyM1jQxVJRRYfk3U/GguIQV7GBPJ5V3/61bnutUhpudyx+/0yqYZyWbgyFwxCcFQ== X-Received: by 10.112.137.66 with SMTP id qg2mr3820509lbb.73.1454619632820; Thu, 04 Feb 2016 13:00:32 -0800 (PST) To: zsh-workers@zsh.org From: Valni Subject: Call git directly to bypass possible functions under the same name X-Enigmail-Draft-Status: N1110 Message-ID: <56B3BBEE.3030309@gmail.com> Date: Thu, 4 Feb 2016 22:00:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hopefully I have reached the right mailing list and posted a valid question/issue. --- I stumbled upon an issue today when creating a function which adds SSH keys to an agent on demand. This function should (and does, in `zsh -f`) only be called when git/ssh is used. The function also has the same name as the program. However, I use a zsh framework which depends on vcs_info, which causes some issue (https://github.com/Eriner/zim/issues/30). When git is called from vcs_info, it does not appear to call it directly, so any definitions of it, such as a function, will take priority. This results in the function (seen in the first post of the GitHub issue) being called when any (or none at all) command is called, because the framework checks if the current directory is used by git using vcs_info. Could vcs_info be changed so that it calls git directly? Thus far, this appears to be the cause of the issue. Thanks in advance.