Why won't this command work ?
git diff | git --git-dir=/other/location/.git --work-tree=/other/location apply
The following works perfectly:
git diff > /tmp/my.patch
cd /other/location && git apply /tmp/my.patch
/other/location
is a mirror of the current directory.
With the piped command I get
error: patch failed: myfile.php:1
error: myfile.php: patch does not apply