git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-apply fails to apply some patches
@ 2006-09-15 13:22 Gerrit Pape
  2006-09-17  6:16 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Gerrit Pape @ 2006-09-15 13:22 UTC (permalink / raw)
  To: git, 386495

Hi, please see http://bugs.debian.org/386495 or below.  I can reproduce
the problem with 1.4.2.1.

Thanks, Gerrit.

----- Forwarded message from Matthew Wilcox <matthew@wil.cx> -----

Trying to apply a patch that was created with interdiff fails ...
Here's the first patch (which works)

--- pciutils-2.1.11.orig/debian/dirs
+++ pciutils-2.1.11/debian/dirs
@@ -0,0 +1,6 @@
+usr/share/misc
+usr/share/man
+usr/bin
+usr/lib
+usr/share/lintian/overrides
+bin

On top of that, I try to apply this interdiff generated patch:

diff -u pciutils-2.1.11/debian/dirs pciutils-2.1.11/debian/dirs
--- pciutils-2.1.11/debian/dirs
+++ pciutils-2.1.11/debian/dirs
@@ -6,0 +7 @@
+var/lib/pciutils

and git-apply says:

error: debian/dirs: already exists in working directory

I suspect it's confused by the '-x,0' thinking that means "file does not
exist" rather than "we have 0 context for this diff".


----- End forwarded message -----

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-09-17 10:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-15 13:22 git-apply fails to apply some patches Gerrit Pape
2006-09-17  6:16 ` Junio C Hamano
2006-09-17  8:17   ` [PATCH] apply --unidiff-zero: loosen sanity checks for --unidiff=0 patches Junio C Hamano
2006-09-17  8:30     ` Jakub Narebski
2006-09-17  8:49       ` Junio C Hamano
2006-09-17  9:01         ` Jakub Narebski
2006-09-17  9:50           ` Junio C Hamano
2006-09-17 10:55             ` [PATCH] git-apply(1): document --unidiff-zero Jonas Fonseca

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).