diff options
author | Masaya Suzuki <masayasuzuki@google.com> | 2018-11-11 12:31:22 -0800 |
---|---|---|
committer | Masaya Suzuki <masayasuzuki@google.com> | 2018-11-19 13:37:28 -0800 |
commit | 49befd84d759501ef45942055eac1c743cb0c5ec (patch) | |
tree | 3a17475f2b69c1f749410b3cb260b7db7a69e63f /org.eclipse.jgit.http.test/tst | |
parent | c567b6ecde6b055441f52f0f36dcf8b9d0fe5068 (diff) | |
download | jgit-49befd84d759501ef45942055eac1c743cb0c5ec.tar.gz jgit-49befd84d759501ef45942055eac1c743cb0c5ec.zip |
Revert C Git 1.7.5 bug workaround
This reverts the workaround introduced by
1c6c73c5a9b8dd700be45d658f165a464265dba7, which is a patch for dealing
with a buggy C Git client v1.7.5 in 2012. We'll stop supporting very old
C Git clients.
Change-Id: I94999a39101c96f210b5eca3c2f620c15eb1ac1b
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
Diffstat (limited to 'org.eclipse.jgit.http.test/tst')
-rw-r--r-- | org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/server/ClientVersionUtilTest.java | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/server/ClientVersionUtilTest.java b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/server/ClientVersionUtilTest.java index c7260e325b..9dca279912 100644 --- a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/server/ClientVersionUtilTest.java +++ b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/server/ClientVersionUtilTest.java @@ -43,11 +43,8 @@ package org.eclipse.jgit.http.server; -import static org.eclipse.jgit.http.server.ClientVersionUtil.hasPushStatusBug; import static org.eclipse.jgit.http.server.ClientVersionUtil.invalidVersion; import static org.eclipse.jgit.http.server.ClientVersionUtil.parseVersion; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; import org.junit.Assert; import org.junit.Test; @@ -67,18 +64,6 @@ public class ClientVersionUtilTest { assertEquals(ClientVersionUtil.toString(invalidVersion()), parseVersion("foo")); } - @Test - public void testPushStatusBug() { - assertTrue(hasPushStatusBug(parseVersion("git/1.6.6"))); - assertTrue(hasPushStatusBug(parseVersion("git/1.6.6.1"))); - assertTrue(hasPushStatusBug(parseVersion("git/1.7.9"))); - - assertFalse(hasPushStatusBug(parseVersion("git/1.7.8.6"))); - assertFalse(hasPushStatusBug(parseVersion("git/1.7.9.1"))); - assertFalse(hasPushStatusBug(parseVersion("git/1.7.9.2"))); - assertFalse(hasPushStatusBug(parseVersion("git/1.7.10"))); - } - private static void assertEquals(String exp, int[] act) { Assert.assertEquals(exp, ClientVersionUtil.toString(act)); } |