]> source.dussan.org Git - jgit.git/commit
ReceivePack: Accept shallow lines from Git >= 1.9 34/32434/3
authorShawn Pearce <sop@google.com>
Wed, 27 Aug 2014 17:41:59 +0000 (10:41 -0700)
committerShawn Pearce <sop@google.com>
Wed, 27 Aug 2014 19:45:17 +0000 (12:45 -0700)
commit199dd4a9a938e5c6ee7a06d0e0610e47b47ff050
tree3380fb0545fb6e6c189ecfbf04be564366f7f86b
parent9bb891e44d23f87e3a97710ffdf877c2ec10b8ee
ReceivePack: Accept shallow lines from Git >= 1.9

In Git 1.9 (5dbd767601 "support pushing from a shallow clone")
the git-core project intentionally broke the existing send-pack
protocol from shallow clients.

Shallow clients now transmit their shallow information during push,
ahead of the old-new command sequence. JGit must accept these lines
when presented.

To protect the server against clients sending partial history,
require the connectivity check when pushed to by a shallow client.

Change-Id: I46639366b0900052c376091e1688f07def44ab79
org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java