jgit/org.eclipse.jgit
Jonathan Tan f5fa1eaf39 Throw error when deepen-since excludes all commits
In C Git, when a client fetches with "git fetch --shallow-since=<date>
origin <ref>", and all commits reachable from <ref> are older than
<date>, the server dies with a message "no commits selected for shallow
requests". That is, (1) the --shallow-since filter applies to the commit
pointed to by the ref itself, and (2) there is a check that at least one
commit is not filtered out. (The pack-protocol.txt documentation does
not describe this, but the C implementation does this.)

The implementation in commit 1bb430dc21 ("UploadPack: support
deepen-since in protocol v2", 2018-09-27) does neither (1) nor (2), so
do both of these.

Change-Id: I9946327a71627626ecce34ca2d017d2add8867fc
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
2018-10-23 11:10:07 -07:00
..
.settings Disable Eclipse warning about unrecognized @SuppressWarnings value 2018-10-17 10:40:36 +09:00
META-INF Move first line parsing for v0/v1 pack negotiation out of UploadPack 2018-10-12 13:59:06 -07:00
findBugs
resources/org/eclipse/jgit Throw error when deepen-since excludes all commits 2018-10-23 11:10:07 -07:00
src/org/eclipse/jgit Throw error when deepen-since excludes all commits 2018-10-23 11:10:07 -07:00
.classpath Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
.fbprefs
.gitignore
.project
BUILD Bazel: Support building with Java 9 2018-02-07 17:51:35 -05:00
about.html SHA-1: collision detection support 2017-02-28 16:38:43 -08:00
build.properties
plugin.properties
pom.xml Prepare 5.1.3-SNAPSHOT builds 2018-10-06 18:54:50 +02:00