diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-09-22 01:15:17 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-22 01:15:18 +0300 |
commit | 07d872434dbddef6c361fb77ed232081c35dfd6c (patch) | |
tree | d67f132eff5e84c6264c154fb1147ada05ff784f /t/test-lib.sh | |
parent | f6727b0509ec3417a5183ba6e658143275a734f5 (diff) | |
parent | eb398797cdc97aae15419f5ac1316440936c31f1 (diff) |
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 ac56512a1c..11562bde10 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 |