diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-09-21 15:15:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-21 15:15:18 -0700 |
commit | 07d872434dbddef6c361fb77ed232081c35dfd6c (patch) | |
tree | d67f132eff5e84c6264c154fb1147ada05ff784f /t/test-lib.sh | |
parent | f6727b0509ec3417a5183ba6e658143275a734f5 (diff) | |
parent | eb398797cdc97aae15419f5ac1316440936c31f1 (diff) | |
download | git-07d872434dbddef6c361fb77ed232081c35dfd6c.tar.gz git-07d872434dbddef6c361fb77ed232081c35dfd6c.tar.xz |
Merge branch 'jt/accept-capability-advertisement-when-fetching-from-void'
JGit can show a fake ref "capabilities^{}" to "git fetch" when it
does not advertise any refs, but "git fetch" was not prepared to
see such an advertisement. When the other side disconnects without
giving any ref advertisement, we used to say "there may not be a
repository at that URL", but we may have seen other advertisement
like "shallow" and ".have" in which case we definitely know that a
repository is there. The code to detect this case has also been
updated.
* jt/accept-capability-advertisement-when-fetching-from-void:
connect: advertized capability is not a ref
connect: tighten check for unexpected early hang up
tests: move test_lazy_prereq JGIT to test-lib.sh
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index ac56512a1..11562bde1 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1073,6 +1073,10 @@ test_lazy_prereq NOT_ROOT ' test "$uid" != 0 ' +test_lazy_prereq JGIT ' + type jgit +' + # SANITY is about "can you correctly predict what the filesystem would # do by only looking at the permission bits of the files and # directories?" A typical example of !SANITY is running the test |