git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] "git apply --index" with missing --directory option silently does nothing
@ 2011-02-02  9:24 Yann Dirson
  0 siblings, 0 replies; only message in thread
From: Yann Dirson @ 2011-02-02  9:24 UTC (permalink / raw)
  To: git list


When applying a patch file for a subtree of a git repo, where was
required is "git apply --index --directory=...", if the user forgets
to add the --directory flag, then git should bomb out saying it cannot
apply the patch.

But what happens is that nothing happens, and git stays silent about
having done nothing:

~/softs/tmp/linux-2.6.32$ git rev-parse --git-dir
/home/localadm/softs/tmp/.git
~/softs/tmp/linux-2.6.32$ bzcat /home/localadm/Downloads/patch-2.6.32.28.bz2 | git apply --index --whitespace=nowarn
~/softs/tmp/linux-2.6.32$ echo $?
0
~/softs/tmp/linux-2.6.32$ git status
# On branch master
nothing to commit (working directory clean)

-- 
Yann Dirson - Bertin Technologies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-02  9:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-02  9:24 [BUG] "git apply --index" with missing --directory option silently does nothing Yann Dirson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).