Re: `ab | (cd cd && git apply -)' fails with v2.0.0
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Jul 24, 2014, 14:22 UTC
- Message-ID
- <53D116B9.3050809@drmicha.warpmail.net>
- In-Reply-To
- <20140724142945.iERQ798d%sdaoden@yandex.com>
Steffen Nurpmeso venit, vidit, dixit 24.07.2014 15:29:
Show 18 quoted lines
> Hello (again, psssssst, after a long time), > > it happened yesterday that i needed to do > > $ git diff HEAD:FILE COMMIT:SAME-FILE | > > (cd src && git apply -) > > but found that didn't work with v2.0.0 (silently succeeds?, doing > nothing). It works without the subshell and the cd(1); i had to > use `(cd src && patch -p2)' instead to keep in going. > Just in case that is not known yet (i've updated my git(1) repo, > but in the 1466 commits in between nothing sprung into my eye > regarding apply, and a Gmane search didn't, too). > No need to Cc: me, please just fix it; thank you. > Ciao, > > --steffen >
Ah little more context would help. Are you diffing files in the subdir src, or a file at the root which happens to be present in the subdir src as well?
Michael