git set remote path to git executable files over ssh

I connect over ssh to a distant machine using this in my ~/.ssh/config:

Host myserver
    User myusername
    ProxyCommand ssh myserver2 exec nc myserver 22

But when I try to pull the remote git repository, I obtain this error:

% git pull myserver:~/mygitrepository
zsh:1: command not found: git-upload-pack
fatal: The remote end hung up unexpectedly

The problem is that my git executable files are not in standard path defined by $PATH. On the remote machine:

% which git-upload-pack

and on the local machine:

% ssh myserver "env | grep PATH"

ssh doesn’t read the remote PATH definition in .zshrc or .bashrc. How can I define the PATH to git executable files over ssh?

Git Baby is a git and github fan, let's start git clone.