]> source.dussan.org Git - jgit.git/log
jgit.git
3 years agoMerge branch 'stable-5.12' 81/184781/1
Matthias Sohn [Mon, 30 Aug 2021 20:25:02 +0000 (22:25 +0200)]
Merge branch 'stable-5.12'

* stable-5.12:
  RevWalk: getMergedInto's result is wrong on the second call

Change-Id: Iee51703b2b009df15c0d8ee19fd480058b665bce

3 years agoIgnore IllegalStateException if JVM is already shutting down 25/183925/4
Matthias Sohn [Thu, 12 Aug 2021 07:28:04 +0000 (09:28 +0200)]
Ignore IllegalStateException if JVM is already shutting down

Trying to register/unregister a shutdown hook when the JVM is already in
shutdown throws an IllegalStateException. Ignore this exception since we
can't do anything about it.

Bug: 575367
Change-Id: Ic967c16c7f566c84778795315ab369e76668b364

3 years agoUpdate orbit to R20210825222808 for 2021-09 94/184494/1
Matthias Sohn [Thu, 26 Aug 2021 18:42:26 +0000 (20:42 +0200)]
Update orbit to R20210825222808 for 2021-09

Change-Id: I5a98f2134d19c3495d7d39cccfd7cf6f07640bd5

3 years agoUpdate spotbugs-maven-plugin to 4.3.0 81/182981/4
Marco Miller [Mon, 12 Jul 2021 12:53:36 +0000 (08:53 -0400)]
Update spotbugs-maven-plugin to 4.3.0

Change-Id: Iafb680923cbc6c81067773159a9a0e2fcdc60169
Signed-off-by: Marco Miller <marco.miller@ericsson.com>
3 years agoUpdate ant to 1.10.11 also in pom.xml 47/184347/1
Matthias Sohn [Tue, 24 Aug 2021 08:25:29 +0000 (10:25 +0200)]
Update ant to 1.10.11 also in pom.xml

This was missed when the target platform was updated to use ant 1.10.11
in cf9baedb5d.

Change-Id: I0d503fa4b27df73a7dad68f1b729346596d78332

3 years agoDFS block cache: add additional stats to DfsReaderIoStats 63/184163/5
Alina Djamankulova [Tue, 17 Aug 2021 16:56:06 +0000 (09:56 -0700)]
DFS block cache: add additional stats to DfsReaderIoStats

New stats are populated in DfsPackFile to provide details about loading
pack, bitmap and reverse indexes.

Signed-off-by: Alina Djamankulova <adjama@google.com>
Change-Id: Ib6e8384ecc31821261e5099d0768c0b1227e8364

3 years agoUpdate Orbit to S20210817231813 00/184300/2
Matthias Sohn [Mon, 23 Aug 2021 08:01:14 +0000 (10:01 +0200)]
Update Orbit to S20210817231813

and org.apache.ant to 1.10.11.v20210720-1445

Change-Id: Ic9c2f42628e47fffc99a07d591bc465b4e24b86e

3 years ago[gpg] Better GPG home directory determination 89/184189/2
Thomas Wolf [Tue, 10 Aug 2021 21:26:42 +0000 (23:26 +0200)]
[gpg] Better GPG home directory determination

GPG can use customized directories instead of the standard ~/.gnupg or
%APPDATA%\gnupg directories:

* Environment variable GNUPGHOME can define the location.
* On Windows, a registry key may define the location (but this is
  deprecated).
* Portable installations may use a directory defined via a file
  "gpgconf.ctl".
* GPG programs may take a --homedir command-line argument, which
  overrides anything.

Implement handling of environment variable GNUPGHOME. The other ways of
GPG to get its home directory are outside the reach of JGit. Provide a
system property "jgit.gpg.home" that the user can set in such cases.

Do tilde replacement for the system property and for GNUPGHOME.

Note that on VMS, the default directory would be ~/gnupg (without dot).
This is not accounted for, but a user on VMS could now use either the
system property or GNUPGHOME to direct JGit to the right directory.

Bug: 575327
Change-Id: Id5ea04a85d58dba0c0df7a705777630d36042467
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoFS: cleanup use of final modifier 49/184049/3
Matthias Sohn [Fri, 13 Aug 2021 07:47:34 +0000 (09:47 +0200)]
FS: cleanup use of final modifier

See the contributor guide [1].

[1] https://wiki.eclipse.org/EGit/Contributor_Guide#Use_of_the_.22final.22_modifier

Change-Id: I4673442310a3a53d838407f7eb11964144bb04d0

3 years agoEnsure FS#searchPath only selects executable files 48/184048/2
Matthias Sohn [Fri, 13 Aug 2021 07:36:26 +0000 (09:36 +0200)]
Ensure FS#searchPath only selects executable files

On Posix non executable files on the path should be ignored, on Windows
File#canExecute always returns true.

While we are here also add missing braces.

Bug: 575385
Change-Id: I80cd5057bdf9632a17f103db6f1356e975b6e150

3 years agoRevWalk: getMergedInto's result is wrong on the second call 60/183960/2
kylezhao [Thu, 12 Aug 2021 11:37:58 +0000 (19:37 +0800)]
RevWalk: getMergedInto's result is wrong on the second call

Make sure the future user can reset all UNINTERESTING commmits after
this operation.

Signed-off-by: kylezhao <kylezhao@tencent.com>
Change-Id: I7549b9ff67bd31acd5dfc92331cb9a30b47b8278

3 years agoDFS block cache: Refactor to enable parallel index loading 62/183562/10
Alina Djamankulova [Fri, 30 Jul 2021 20:36:15 +0000 (13:36 -0700)]
DFS block cache: Refactor to enable parallel index loading

With this change bitmap index creation is not blocked on index and
reverse index full initialization in DfsPackFile. Now bitmap index and index could be
read from storage in parallel in separate threads.

Update PackBitmapIndexV1 constructor to get packIndex and reverseIndex
suppliers instead of actual objects. Inner class IdxPositionBitmap was added to initialize pack objects after bitmap
index is fully read from storage. Update DfsPackFile and PackBitmapIndex
accordingly.

Signed-off-by: Alina Djamankulova <adjama@google.com>
Change-Id: Iea59ab58501b2acbbf9263412982ec9c6898a7ee

3 years agoMerge branch 'stable-5.12' 27/183527/1
Thomas Wolf [Thu, 29 Jul 2021 11:12:40 +0000 (13:12 +0200)]
Merge branch 'stable-5.12'

* stable-5.12:
  [test] Create keystore with the keytool of the running JDK
  Fix garbage collection failing to delete pack file
  ReachabilityCheckerTestCase: fix reachable from self test case

Change-Id: I4b54f4850819736144edb784617ee902f491ffd6
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.11' into stable-5.12 84/183484/1
Thomas Wolf [Thu, 29 Jul 2021 11:11:54 +0000 (13:11 +0200)]
Merge branch 'stable-5.11' into stable-5.12

* stable-5.11:
  [test] Create keystore with the keytool of the running JDK
  ReachabilityCheckerTestCase: fix reachable from self test case

Change-Id: Ie8db450a1fad05bddb812a55b2ceb03b2805403a
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.10' into stable-5.11 83/183483/1
Thomas Wolf [Thu, 29 Jul 2021 11:11:08 +0000 (13:11 +0200)]
Merge branch 'stable-5.10' into stable-5.11

* stable-5.10:
  [test] Create keystore with the keytool of the running JDK
  ReachabilityCheckerTestCase: fix reachable from self test case

Change-Id: I55f4dd19e9fa3b789bd9a79d256fe9abb55ee7f4
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.9' into stable-5.10 82/183482/1
Thomas Wolf [Thu, 29 Jul 2021 11:10:33 +0000 (13:10 +0200)]
Merge branch 'stable-5.9' into stable-5.10

* stable-5.9:
  [test] Create keystore with the keytool of the running JDK
  ReachabilityCheckerTestCase: fix reachable from self test case

Change-Id: Ic37426211905d987ddd11480a54d95b86143c94c
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.8' into stable-5.9 81/183481/1
Thomas Wolf [Thu, 29 Jul 2021 11:09:52 +0000 (13:09 +0200)]
Merge branch 'stable-5.8' into stable-5.9

* stable-5.8:
  [test] Create keystore with the keytool of the running JDK
  ReachabilityCheckerTestCase: fix reachable from self test case

Change-Id: If09cbb877c674f15261715cecef7a2393bf66fa3
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.7' into stable-5.8 80/183480/1
Thomas Wolf [Thu, 29 Jul 2021 11:09:13 +0000 (13:09 +0200)]
Merge branch 'stable-5.7' into stable-5.8

* stable-5.7:
  [test] Create keystore with the keytool of the running JDK
  ReachabilityCheckerTestCase: fix reachable from self test case

Change-Id: I32010c6bf45d5138e17143d6c284ac56434eade1
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.6' into stable-5.7 79/183479/1
Thomas Wolf [Thu, 29 Jul 2021 11:08:01 +0000 (13:08 +0200)]
Merge branch 'stable-5.6' into stable-5.7

* stable-5.6:
  [test] Create keystore with the keytool of the running JDK
  ReachabilityCheckerTestCase: fix reachable from self test case

Change-Id: I1f6b4fc26f6ee6f22cc0aacd032c1e73ba246dbc
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.5' into stable-5.6 78/183478/1
Thomas Wolf [Thu, 29 Jul 2021 11:06:56 +0000 (13:06 +0200)]
Merge branch 'stable-5.5' into stable-5.6

* stable-5.5:
  [test] Create keystore with the keytool of the running JDK

Change-Id: Icb0bb6dc4ad05b1f3eb562547893f2e0aedf8775
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.4' into stable-5.5 77/183477/1
Thomas Wolf [Thu, 29 Jul 2021 11:05:59 +0000 (13:05 +0200)]
Merge branch 'stable-5.4' into stable-5.5

* stable-5.4:
  [test] Create keystore with the keytool of the running JDK

Change-Id: I5ff3dc1c771aeb33af39eb68f166c7282b478cf8
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.3' into stable-5.4 76/183476/1
Thomas Wolf [Thu, 29 Jul 2021 11:05:20 +0000 (13:05 +0200)]
Merge branch 'stable-5.3' into stable-5.4

* stable-5.3:
  [test] Create keystore with the keytool of the running JDK

Change-Id: If92372b7bfbfb9445fcb934c48dc1cd6610e061b
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.2' into stable-5.3 75/183475/1
Thomas Wolf [Thu, 29 Jul 2021 11:03:56 +0000 (13:03 +0200)]
Merge branch 'stable-5.2' into stable-5.3

* stable-5.2:
  [test] Create keystore with the keytool of the running JDK

Change-Id: I981de862c614986a7b443fed1cce7b895b758682
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoMerge branch 'stable-5.1' into stable-5.2 74/183474/1
Thomas Wolf [Thu, 29 Jul 2021 11:02:16 +0000 (13:02 +0200)]
Merge branch 'stable-5.1' into stable-5.2

* stable-5.1:
  [test] Create keystore with the keytool of the running JDK

Change-Id: Ic56f4f23c37432377be88e07d06c5ad75591d84f
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years ago[test] Create keystore with the keytool of the running JDK 71/183471/1
Thomas Wolf [Sun, 25 Jul 2021 13:44:35 +0000 (15:44 +0200)]
[test] Create keystore with the keytool of the running JDK

Call keytool with the absolute path of "java.home". Otherwise a keytool
for a different, maybe even newer Java version might be picked up, and
then the keystore may not be readable by the JVM used to run the tests.

(cherry picked from commit 2d73c702d3e9128b7dc03a01fe2cf18f119d3ffe)

Change-Id: Iea77024947a34267f008847d81312fe0abadc615
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years ago[gpg] Update to Bouncy Castle 1.69 76/183376/1
Thomas Wolf [Mon, 26 Jul 2021 11:28:40 +0000 (13:28 +0200)]
[gpg] Update to Bouncy Castle 1.69

Bump lower bound in MANIFEST.MF and adapt code.

Change-Id: I3a3c7948e5fc29f5517fe84209fcea81834e8e5b

3 years ago[test] Create keystore with the keytool of the running JDK 51/183351/1
Thomas Wolf [Sun, 25 Jul 2021 13:44:35 +0000 (15:44 +0200)]
[test] Create keystore with the keytool of the running JDK

Call keytool with the absolute path of "java.home". Otherwise a keytool
for a different, maybe even newer Java version might be picked up, and
then the keystore may not be readable by the JVM used to run the tests.

Change-Id: Iea77024947a34267f008847d81312fe0abadc615
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years ago[sshd] Minor code clean-up 52/183252/3
Thomas Wolf [Wed, 21 Jul 2021 17:53:47 +0000 (19:53 +0200)]
[sshd] Minor code clean-up

Since upstream changed the method profile to throw Exception it's not
necessary anymore to re-throw as IOException.

Change-Id: I31afab4f6e1a2f0feef79e6abced20d0ca1c493b

3 years agoSupport commit.template config property 21/179821/5
Julian Ruppel [Mon, 26 Apr 2021 08:24:05 +0000 (10:24 +0200)]
Support commit.template config property

Adds functionality to read the git commit.template property. The
template content is read either via a default encoding or, if present,
via encoding specified by i18n.commitEncoding property.

Bug: 446355

Change-Id: I0c45db98e324ddff26a7e0262835f259d6528a86
Signed-off-by: Julian Ruppel <julian.ruppel@sap.com>
3 years agoRelax version range for hamcrest and assertj 65/183165/1
Matthias Sohn [Mon, 19 Jul 2021 10:32:26 +0000 (12:32 +0200)]
Relax version range for hamcrest and assertj

We currently cannot use hamcrest 2.2 and assertj 3.20.2 (which requires
hamcrest 2.2) in egit tests since other Eclipse dependencies (e.g.
swtbot) require hamcrest 1.1.

Hence relax version range for these components in jgit so that jgit
tests also work when using the egit target platform.

Change-Id: I521e2ec4491bd8d790609b8a66a8f14511a865a1

3 years agobazel: don't expose jsch and jzlib to org.eclipse.jgit 71/183071/2
Matthias Sohn [Wed, 14 Jul 2021 22:00:43 +0000 (00:00 +0200)]
bazel: don't expose jsch and jzlib to org.eclipse.jgit

These libraries are no longer used by org.eclipse.jgit since the code
depending on them was moved to org.eclipse.jgit.ssh.jsch.

Change-Id: Ic1c66e8ca06d904abf44d84154bbe9a770aa94d5

3 years agoUpdate orbit to I20210713220109 70/183070/2
Matthias Sohn [Wed, 14 Jul 2021 20:30:06 +0000 (22:30 +0200)]
Update orbit to I20210713220109

update
- org.apache.commons.compress to 1.20.0.v20210713-192
- org.bouncycastle.bcpg to 1.69.0.v20210713-1924
- org.bouncycastle.bcpkix to 1.69.0.v20210713-1924
- org.bouncycastle.bcprov to 1.69.0.v20210713-1924

- add org.bouncycastle.bcutil 1.69.0.v20210713-1924

In bazel build don't expose bouncycastle to org.eclipse.jgit since it's
not used there anymore since code depending on bouncycastle was moved to
org.eclipse.jgit.gpg.bc.

CQ: 21771
CQ: 23471
CQ: 23472
CQ: 23473
CQ: 23474
Change-Id: Id3d94c00c39bbc57e3f49a61150841249dc3985c

3 years agoUpdate orbit to I20210711110031 88/182788/8
Matthias Sohn [Sun, 11 Jul 2021 12:21:40 +0000 (14:21 +0200)]
Update orbit to I20210711110031

and update
- assertj to 3.20.2.v20210706-1104
- hamcrest to 2.2.0.v20210711-0821
  - classes which were in org.hamcrest.core 1.3 and org.hamcrest.library
    1.3 were all moved to org.hamcrest in 2.2
  - the annotation org.hamcrest.Factory was removed and is no longer
    needed
  - junit 4.13 requires hamcrest-core and hamcrest-library 1.3 therefore
    keep them in the target platform

CQ: 23501
Change-Id: Ife871c0343b611be9203aed7f86577e85bbf5c95

3 years ago[sshd] Ignore revoked keys in OpenSshServerKeyDatabase.lookup() 68/182868/2
Thomas Wolf [Tue, 18 May 2021 19:44:18 +0000 (21:44 +0200)]
[sshd] Ignore revoked keys in OpenSshServerKeyDatabase.lookup()

It makes no sense to return revoked keys.

Change-Id: I99eee1de3dba5c0c8d275b7c1a24053874b3cb03
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years ago[sshd] Distinguish key type and signature algorithm for host key 67/182867/2
Thomas Wolf [Tue, 29 Jun 2021 21:08:02 +0000 (23:08 +0200)]
[sshd] Distinguish key type and signature algorithm for host key

Since the introduction of the rsa-sha2-512 and rsa-sha2-256 signature
types, the key type for RSA is no longer automatically the signature
algorithm. We re-order the list for the host key proposal such that
keys we already have are preferred; this minimizes warnings about new
host keys. When doing so, put all of rsa-sha2-512, rsa-sha2-256, and
ssh-rsa at the front, in that order, not just ssh-rsa.

This ensures that we do prefer RSA keys if we already have an RSA host
key, but at the same time we still prefer the stronger signature
algorithms over the weaker and deprecated SHA1-based ssh-rsa signature.
It also helps avoid a bug found in some Github versions where the Github
SSH server uses a rsa-sha2-512 signature even though ssh-rsa was
negotiated.[1]

[1] https://www.eclipse.org/forums/index.php/t/1108282/

Bug: 574635
Change-Id: I0a49dcfa0c2c93f23118c983cd0bc9e5a467d886
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years ago[sshd] Implement SSH config KexAlgorithms 66/182866/2
Thomas Wolf [Tue, 29 Jun 2021 20:57:09 +0000 (22:57 +0200)]
[sshd] Implement SSH config KexAlgorithms

Make the used KEX algorithms configurable via the ssh config. Also
implement adding algorithms not in the default set: since sshd 2.6.0
deprecated SHA1-based algorithms, it is possible that the default set
has not all available algorithms, so adding algorithms makes sense.

This enables users who have to use a git server that only supports
old SHA1-based key exchange methods to enable those methods in the
ssh config:

  KexAlgorithms +diffie-hellman-group1-sha1

There are two more SHA1 algorithms that are not enabled by default:
diffie-hellman-group14-sha1 and diffie-hellman-group-exchange-sha1.
KeyAlgorithms accepts a comma-separated list of algorithm names.

Since adding algorithms is now supported, adapt the handling of
signature algorithms, too. Make sure that definitions for the KEX
exchange signature (HostKeyAlgorithms) don't conflict with the
definition for signatures for pubkey auth (PubkeyAcceptedAlgorithms).

HostKeyAlgorithms updates the signature factories set on the session
to include the default factories plus any that might have been added
via the SSH config. Move the handling of PubkeyAcceptedAlgorithms
from the client to the JGitPubkeyAuthentication, where it can be done
only if pubkey auth is attempted at all and where it can store its
adapted list of factories locally.

Bug: 574636
Change-Id: Ia5d5f174bbc8e5b41e10ec2c25216d861174e7c3
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoUpdate orbit to S20210705204906 18/182918/1
Matthias Sohn [Thu, 8 Jul 2021 19:54:38 +0000 (21:54 +0200)]
Update orbit to S20210705204906

Change-Id: Ib4ec9f80a8a346fa8c709e58f8076372d14eca64

3 years agoUpdate jetty to 9.4.43.v20210629 05/182905/1
Matthias Sohn [Thu, 8 Jul 2021 16:15:04 +0000 (18:15 +0200)]
Update jetty to 9.4.43.v20210629

Change-Id: I4ceea58cb0a04d041ca4e698e096a00ccd12bfc0

3 years agoUpdate JMH used in benchmarks to 1.32 20/182620/2
Matthias Sohn [Tue, 29 Jun 2021 19:34:49 +0000 (21:34 +0200)]
Update JMH used in benchmarks to 1.32

Change-Id: I98734165de8256ab1461733169957efbfa5f36e4
CQ: 23499
CQ: 23500

3 years agoUpdate target platform to I20210626190330 73/180473/10
Thomas Wolf [Tue, 11 May 2021 07:04:52 +0000 (09:04 +0200)]
Update target platform to I20210626190330

Update
- com.google.gson to 2.8.7.v20210624-1215
- javaewah to 1.1.12.v20210622-2206
- org.apache.sshd.osgi to 2.7.0.v20210623-0618
- org.apache.sshd.sftp to 2.7.0.v20210623-0618
- org.tukaani.xz to 1.9.0.v20210624-1259
- Apache MINA sshd to 2.7.0
  - Remove work-arounds for problems resolved upstream since 2.6.0, and
    adapt to upstream API changes.
- update DEPENDENCIES.

CQ: 23469
CQ: 23470
CQ: 23496
CQ: 23497
CQ: 23498
Bug: 574220
Change-Id: I898b216c3492f8488fbf25fa4b49f1250f86f3c8
Also-by: David Ostrovsky <david@ostrovsky.org>
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
3 years agoAdd 4.21 target platform 23/182623/2
Matthias Sohn [Tue, 29 Jun 2021 19:44:06 +0000 (21:44 +0200)]
Add 4.21 target platform

Change-Id: I88d32956fd7ad5c23aa395abd88f35359b519b79

3 years agoUpdate 4.20 target platform to use final 4.20 release 22/182622/2
Matthias Sohn [Tue, 29 Jun 2021 19:43:44 +0000 (21:43 +0200)]
Update 4.20 target platform to use final 4.20 release

Change-Id: I8d6a1617a7713faf5186cfb5b2a084d0f1f9e63f

3 years agoMerge "Remove use of deprecated getAllRefs() in ReceivePack"
Matthias Sohn [Thu, 1 Jul 2021 18:13:19 +0000 (14:13 -0400)]
Merge "Remove use of deprecated getAllRefs() in ReceivePack"

3 years agoMerge "Merge branch 'stable-5.11' into stable-5.12" into stable-5.12
Matthias Sohn [Tue, 29 Jun 2021 18:22:22 +0000 (14:22 -0400)]
Merge "Merge branch 'stable-5.11' into stable-5.12" into stable-5.12

3 years ago[pgm] Fix default meta variable defined in StopOptionHandler 00/182500/1
Matthias Sohn [Sun, 27 Jun 2021 20:18:33 +0000 (22:18 +0200)]
[pgm] Fix default meta variable defined in StopOptionHandler

Change-Id: I703718e2476d40d34b11083414ac0ed5e34bf90a

3 years agoFix typo in javadoc of PathTreeFilterHandler 99/182499/1
Matthias Sohn [Sun, 27 Jun 2021 17:06:19 +0000 (19:06 +0200)]
Fix typo in javadoc of PathTreeFilterHandler

Change-Id: Icf0dc814baf0dc44addd102d9c03b821b4022a84

3 years agoRemove use of deprecated getAllRefs() in ReceivePack 00/182200/5
Luca Milanesio [Sat, 19 Jun 2021 00:50:35 +0000 (01:50 +0100)]
Remove use of deprecated getAllRefs() in ReceivePack

Repository.getAllRefs() is deprecated and should not
be used anymore. Leverage the ref-db and the retrieval
of refs by prefix and adapt the result to the expected
refname/ref map.

Bug: 534731
Change-Id: I37a9092859f220ddc4e5063d01544f3e82208be8
Signed-off-by: Luca Milanesio <luca.milanesio@gmail.com>
3 years agoMerge branch 'stable-5.12' 90/182490/1
Matthias Sohn [Sat, 26 Jun 2021 14:37:59 +0000 (16:37 +0200)]
Merge branch 'stable-5.12'

* stable-5.12:
  Retry loose object read upon "Stale file handle" exception
  Ignore missing javadoc in test bundles

Change-Id: I67c613c066a3252f9b0d0a3dcc026b57e10bfe1d

3 years agoMerge branch 'stable-5.11' into stable-5.12 89/182489/1
Matthias Sohn [Sat, 26 Jun 2021 14:36:55 +0000 (16:36 +0200)]
Merge branch 'stable-5.11' into stable-5.12

* stable-5.11:
  Retry loose object read upon "Stale file handle" exception
  Ignore missing javadoc in test bundles

Change-Id: Ia4dc886c920cec3c9da86e1a90a0af68bd016b4f

3 years agoMerge branch 'stable-5.10' into stable-5.11 88/182488/2
Matthias Sohn [Sat, 26 Jun 2021 13:41:19 +0000 (15:41 +0200)]
Merge branch 'stable-5.10' into stable-5.11

* stable-5.10:
  Retry loose object read upon "Stale file handle" exception
  Ignore missing javadoc in test bundles

Change-Id: Ia385fa6b5d2fee64476793e06860a279bf2f6e36

3 years agoMerge branch 'stable-5.9' into stable-5.10 80/182480/1
Matthias Sohn [Fri, 25 Jun 2021 20:23:47 +0000 (22:23 +0200)]
Merge branch 'stable-5.9' into stable-5.10

* stable-5.9:
  Retry loose object read upon "Stale file handle" exception
  Ignore missing javadoc in test bundles

Change-Id: I56fc2c47193a891285a705d44b3507f23982dc8a

3 years agosearchForReuse might impact performance in large repositories 55/181355/20
Fabio Ponciroli [Thu, 3 Jun 2021 14:15:17 +0000 (16:15 +0200)]
searchForReuse might impact performance in large repositories

The search for reuse phase for *all* the objects scans *all*
the packfiles, looking for the best candidate to serve back to the
client.

This can lead to an expensive operation when the number of
packfiles and objects is high.

Add parameter "pack.searchForReuseTimeout" to limit the time spent
on this search.

Change-Id: I54f5cddb6796fdc93ad9585c2ab4b44854fa6c48

3 years agoRetry loose object read upon "Stale file handle" exception 95/181295/12
Antonio Barone [Wed, 2 Jun 2021 15:13:17 +0000 (18:13 +0300)]
Retry loose object read upon "Stale file handle" exception

When reading loose objects over NFS it is possible that the OS syscall
would fail with ESTALE errors: This happens when the open file
descriptor no longer refers to a valid file.

Notoriously it is possible to hit this scenario when git data is shared
among multiple clients, for example by multiple gerrit instances in HA.

If one of the two clients performs a GC operation that would cause the
packing and then the pruning of loose objects, the other client might
still hold a reference to those objects, which would cause an exception
to bubble up the stack.

The Linux NFS FAQ[1] (at point A.10), suggests that the proper way to
handle such ESTALE scenarios is to:

"[...] close the file or directory where the error occurred, and reopen
it so the NFS client can resolve the pathname again and retrieve the new
file handle."

In case of a stale file handle exception, we now attempt to read the
loose object again (up to 5 times), until we either succeed or encounter
a FileNotFoundException, in which case the search can continue to
Packfiles and alternates.

The limit of 5 provides an arbitrary upper bounds that is consistent to
the one chosen when handling stale file handles for packed-refs
files (see [2] for context).

[1] http://nfs.sourceforge.net/
[2] https://git.eclipse.org/r/c/jgit/jgit/+/54350

Bug: 573791
Change-Id: I9950002f772bbd8afeb9c6108391923be9d0ef51

3 years agoIgnore missing javadoc in test bundles 25/182425/1
Matthias Sohn [Thu, 24 Jun 2021 21:13:51 +0000 (23:13 +0200)]
Ignore missing javadoc in test bundles

Change-Id: I83ed20823dc6b22ff48c2a554acb2f7d3b6067b7

3 years agoFix garbage collection failing to delete pack file 26/182426/1
andrewxian2000 [Mon, 14 Jun 2021 21:58:52 +0000 (09:58 +1200)]
Fix garbage collection failing to delete pack file

The loosen() method has opened pack file and the open pack file handle
may prevent it from being deleted e.g. on Windows. Fix this by closing
the pack file only after loosen() finished.

Bug: 574178
Change-Id: Icd59931a218d84c9c97b450eea87b21ed01248ff
Signed-off-by: andrew.xian2000@gmail.com
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
3 years agoUpgrade maven-dependency-plugin to 3.2.0 10/182110/3
Marco Miller [Thu, 17 Jun 2021 11:34:24 +0000 (07:34 -0400)]
Upgrade maven-dependency-plugin to 3.2.0

Change-Id: I9dea176e8b30658bcb6a9dee8c54184c0fa86de8
Signed-off-by: Marco Miller <marco.miller@ericsson.com>
3 years agoUpgrade jacoco-maven-plugin to 0.8.7 23/180523/3
Marco Miller [Wed, 12 May 2021 12:50:29 +0000 (08:50 -0400)]
Upgrade jacoco-maven-plugin to 0.8.7

Change-Id: I6742b2d8ec75422542a55a9840bfe43e8cf17400
Signed-off-by: Marco Miller <marco.miller@ericsson.com>
3 years agoUpgrade maven-jxr-plugin to 3.1.1 08/180008/3
Marco Miller [Thu, 29 Apr 2021 18:44:48 +0000 (14:44 -0400)]
Upgrade maven-jxr-plugin to 3.1.1

Change-Id: I66d7589ea1b823305d908acb13367ef78ef55f7a
Signed-off-by: Marco Miller <marco.miller@ericsson.com>
3 years agoFix garbage collection failing to delete pack file 18/182018/7
andrewxian2000 [Mon, 14 Jun 2021 21:58:52 +0000 (09:58 +1200)]
Fix garbage collection failing to delete pack file

The loosen() method has opened pack file and the open pack file handle
may prevent it from being deleted e.g. on Windows. Fix this by closing
the pack file only after loosen() finished.

Bug: 574178
Change-Id: Icd59931a218d84c9c97b450eea87b21ed01248ff
Signed-off-by: andrew.xian2000@gmail.com
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
3 years agoFix PathSuffixFilter: can decide only on full paths 26/182126/2
Thomas Wolf [Thu, 17 Jun 2021 15:50:31 +0000 (17:50 +0200)]
Fix PathSuffixFilter: can decide only on full paths

On a subtree, a PathSuffixFilter must return -1 ("indeterminate"),
not 0 ("include"), otherwise negation goes wrong: an indeterminate
result (-1) is passed on, but a decision (0/1) is inverted.

As a result a negated PathSuffixFilter would skip all folders.

Bug: 574253
Change-Id: I27fe785c0d772392a5b5efe0a7b1c9cafcb6e566
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoUpdate jetty to 9.4.42.v20210604 54/182054/2
Matthias Sohn [Wed, 16 Jun 2021 15:43:25 +0000 (17:43 +0200)]
Update jetty to 9.4.42.v20210604

Change-Id: Ie0abae5686064ccfeb34e8af0d98471162036b00

3 years ago[sshd] Log the full KEX negotiation result 23/182223/1
Thomas Wolf [Sat, 19 Jun 2021 13:41:37 +0000 (15:41 +0200)]
[sshd] Log the full KEX negotiation result

Apache MINA sshd doesn't log all values, but it'd be very helpful to
debug KEX problems.

Change-Id: I5a19023c929f39caccde489d51a6fdca711fe5ff
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years ago[releng] japicmp: update last release version 58/182058/1
Thomas Wolf [Wed, 16 Jun 2021 16:14:17 +0000 (18:14 +0200)]
[releng] japicmp: update last release version

The baseline for the 5.13 release is 5.12.0.202106070339-r.

Change-Id: Ic4730ca296117d7a7f6e86228ce2393a748c3c06
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoReachabilityCheckerTestCase: fix reachable from self test case 55/182055/1
Han-Wen Nienhuys [Wed, 16 Jun 2021 15:41:24 +0000 (17:41 +0200)]
ReachabilityCheckerTestCase: fix reachable from self test case

Change-Id: I8f94a0a0ff401f1691b3757002756b4e83dd8640
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
3 years agoCONTRIBUTING: add explicit link to ECA 91/181991/1
Matthias Sohn [Tue, 15 Jun 2021 12:01:00 +0000 (14:01 +0200)]
CONTRIBUTING: add explicit link to ECA

This was requested in the 5.12 release review.

Bug: https://gitlab.eclipse.org/eclipsefdn/emo-team/emo/-/issues/58
Change-Id: I21abe960412a7bc7a0d2f3bdfc4a1d031a700c3b

3 years agoCONTRIBUTING: Use standard markdown format 90/181990/1
Matthias Sohn [Tue, 15 Jun 2021 11:59:23 +0000 (13:59 +0200)]
CONTRIBUTING: Use standard markdown format

Change-Id: Ic64a62ca29950fb6a4c3c8a31bee8173c005ea4e

3 years agoAdd Eclipse code of conduct and security policy 86/181986/1
Matthias Sohn [Tue, 15 Jun 2021 11:44:58 +0000 (13:44 +0200)]
Add Eclipse code of conduct and security policy

This was requested in the 5.12 release review.

Bug: https://gitlab.eclipse.org/eclipsefdn/emo-team/emo/-/issues/58
Change-Id: Ifbfa4c239e8ce0da6d5571362a12c20c399b64e4

3 years agoFix @since from commit 64d0aaa2 38/181938/1
Thomas Wolf [Mon, 14 Jun 2021 19:22:13 +0000 (21:22 +0200)]
Fix @since from commit 64d0aaa2

That commit was submitted on master between the 5.12.0 release and
the 5.13.0 version bump.

Change-Id: I679e818bfc5a4695b66548add9a83a22c89a4ffc
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
3 years agoPrepare 5.13.0-SNAPSHOT builds 92/181892/1
Matthias Sohn [Sun, 13 Jun 2021 23:49:05 +0000 (01:49 +0200)]
Prepare 5.13.0-SNAPSHOT builds

Change-Id: Ie9cfc1eeb0eda7b2bbe744a22a7e4cfe6d59bc37

3 years agoMerge branch 'stable-5.12' 91/181891/1
Matthias Sohn [Sun, 13 Jun 2021 23:32:21 +0000 (01:32 +0200)]
Merge branch 'stable-5.12'

* stable-5.12:
  Prepare 5.12.1-SNAPSHOT builds
  JGit v5.12.0.202106070339-r
  [license-check] Update list of project dependencies
  [errorprone] Fix warning InputStreamSlowMultibyteRead
  [errorprone] Make operator precedence explicit in OpenSshConfigFile
  Update jetty to 9.4.41.v20210516
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: I9bd4dfc3796a5034be7b3e86b35ef591bb516a2c

3 years agoMerge branch 'stable-5.11' into stable-5.12 90/181890/1
Matthias Sohn [Sun, 13 Jun 2021 23:31:16 +0000 (01:31 +0200)]
Merge branch 'stable-5.11' into stable-5.12

* stable-5.11:

Change-Id: Ifdbddcde74dda9895bcdd90f1be201c3ceca2b29

3 years agoMerge branch 'stable-5.10' into stable-5.11 89/181889/1
Matthias Sohn [Sun, 13 Jun 2021 23:13:18 +0000 (01:13 +0200)]
Merge branch 'stable-5.10' into stable-5.11

* stable-5.10:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: I265425194c24fd82cbeff869ce41cbc9b73571a2

3 years agoMerge "Prepare 5.12.1-SNAPSHOT builds" into stable-5.12
Matthias Sohn [Sun, 13 Jun 2021 22:52:44 +0000 (18:52 -0400)]
Merge "Prepare 5.12.1-SNAPSHOT builds" into stable-5.12

3 years agoMerge "Merge branch 'stable-5.10' into stable-5.11" into stable-5.12
Matthias Sohn [Sun, 13 Jun 2021 22:48:42 +0000 (18:48 -0400)]
Merge "Merge branch 'stable-5.10' into stable-5.11" into stable-5.12

3 years agoPrepare 5.12.1-SNAPSHOT builds 84/181884/1
Matthias Sohn [Sun, 13 Jun 2021 21:58:34 +0000 (23:58 +0200)]
Prepare 5.12.1-SNAPSHOT builds

Change-Id: Idf266c34aa9a04cf9c5e0e09bcb415c13d773d4c

3 years agoMerge branch 'stable-5.10' into stable-5.11 83/181883/1
Matthias Sohn [Sun, 13 Jun 2021 21:57:08 +0000 (23:57 +0200)]
Merge branch 'stable-5.10' into stable-5.11

* stable-5.10:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: I50dcc037a96f3a4237c09516c82e1c18acbd2e0b

3 years agoMerge branch 'stable-5.9' into stable-5.10 82/181882/1
Matthias Sohn [Sun, 13 Jun 2021 21:55:46 +0000 (23:55 +0200)]
Merge branch 'stable-5.9' into stable-5.10

* stable-5.9:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: Ib1299564a4cfb9c01f422d7ada05fcfac29700f8

3 years agoMerge branch 'stable-5.8' into stable-5.9 81/181881/1
Matthias Sohn [Sun, 13 Jun 2021 21:55:03 +0000 (23:55 +0200)]
Merge branch 'stable-5.8' into stable-5.9

* stable-5.8:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: I9abf7dd8b8e5eb3199fd6b43a4653c4e4cf4bf1b

3 years agoMerge branch 'stable-5.7' into stable-5.8 80/181880/1
Matthias Sohn [Sun, 13 Jun 2021 21:54:06 +0000 (23:54 +0200)]
Merge branch 'stable-5.7' into stable-5.8

* stable-5.7:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: I1ee0d01c14fb7dca151b4e7ae1b989da5a3a01e3

3 years agoMerge branch 'stable-5.6' into stable-5.7 79/181879/1
Matthias Sohn [Sun, 13 Jun 2021 21:52:46 +0000 (23:52 +0200)]
Merge branch 'stable-5.6' into stable-5.7

* stable-5.6:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: I4570cce185877cb4c50eee519a1cf9467a766dea

3 years agoMerge branch 'stable-5.5' into stable-5.6 79/181479/5
Matthias Sohn [Sun, 6 Jun 2021 08:45:57 +0000 (10:45 +0200)]
Merge branch 'stable-5.5' into stable-5.6

* stable-5.5:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in
    memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: I504483a4dc979c5e7af18bad45dc18675e32afd2

3 years agoTeach independent negotiation (no pack file) using an option "wait-for-done" 24/181324/16
Ronald Bhuleskar [Wed, 9 Jun 2021 22:41:09 +0000 (15:41 -0700)]
Teach independent negotiation (no pack file) using an option "wait-for-done"

From Git commit 9c1e657a8f:
  Currently, the packfile negotiation step within a Git fetch cannot be
  done independent of sending the packfile, even though there is at
  least one application wherein this is useful - push negotiation.
  Therefore, make it possible for this negotiation step to be done
  independently.

  This feature is for protocol v2 only.

  In the protocol, the main hindrance towards independent negotiation is
  that the server can unilaterally decide to send the packfile. This is
  solved by a "wait-for-done" argument: the server will then wait for
  the client to say "done". In practice, the client will never say it;
  instead it will cease requests once it is satisfied.

Advertising the server capability option "wait-for-done" is behind the
transport config: uploadpack.advertisewaitfordone, which by default is
false.

Change-Id: I5ebd3e99ad76b8943597216e23ced2ed38eb5224

3 years agoJGit v5.12.0.202106070339-r 00/181500/1 v5.12.0.202106070339-r
Matthias Sohn [Mon, 7 Jun 2021 07:38:29 +0000 (09:38 +0200)]
JGit v5.12.0.202106070339-r

Change-Id: I0fbfea2c83f1ce83f75130cc97591547032f1104
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
3 years ago[license-check] Update list of project dependencies 90/181490/1
Matthias Sohn [Sun, 6 Jun 2021 23:20:01 +0000 (01:20 +0200)]
[license-check] Update list of project dependencies

Change-Id: I94530902bdcc93e160416750742cc2bf63d7c411

3 years ago[errorprone] Fix warning InputStreamSlowMultibyteRead 87/181487/1
Matthias Sohn [Sun, 6 Jun 2021 22:28:48 +0000 (00:28 +0200)]
[errorprone] Fix warning InputStreamSlowMultibyteRead

Change-Id: I50dace6e310016c04f524eb0cfcce0da05fadd47

3 years ago[errorprone] Make operator precedence explicit in OpenSshConfigFile 86/181486/1
Matthias Sohn [Sun, 6 Jun 2021 22:25:32 +0000 (00:25 +0200)]
[errorprone] Make operator precedence explicit in OpenSshConfigFile

This fixes the errorprone warning OperatorPrecedence.

Change-Id: I4c7dafa5ac8e1d58fa15cf91fe1b3cf3f182d536

3 years agoUpdate jetty to 9.4.41.v20210516 85/181485/1
Matthias Sohn [Sun, 6 Jun 2021 22:23:30 +0000 (00:23 +0200)]
Update jetty to 9.4.41.v20210516

Change-Id: I98d569ce9a69c48c3c99b9b5f500d6419c943094

3 years agoMerge branch 'stable-5.4' into stable-5.5 78/181478/1
Matthias Sohn [Sat, 5 Jun 2021 20:49:56 +0000 (22:49 +0200)]
Merge branch 'stable-5.4' into stable-5.5

* stable-5.4:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: If5232b68d3e25df7b71e417cbcbb39476e925f22

3 years agoMerge branch 'stable-5.3' into stable-5.4 77/181477/1
Matthias Sohn [Sat, 5 Jun 2021 20:49:07 +0000 (22:49 +0200)]
Merge branch 'stable-5.3' into stable-5.4

* stable-5.3:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: I1338fc79a7be6b77fb28df511dd7504fb19b6d1a

3 years agoMerge branch 'stable-5.2' into stable-5.3 76/181476/1
Matthias Sohn [Sat, 5 Jun 2021 20:48:01 +0000 (22:48 +0200)]
Merge branch 'stable-5.2' into stable-5.3

* stable-5.2:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: I7838f7d237a3598bf55995426d7ba1de146cb6ad

3 years agoMerge branch 'stable-5.1' into stable-5.2 75/181475/1
Matthias Sohn [Sat, 5 Jun 2021 20:19:47 +0000 (22:19 +0200)]
Merge branch 'stable-5.1' into stable-5.2

* stable-5.1:
  Prepare 5.1.17-SNAPSHOT builds
  JGit v5.1.16.202106041830-r
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()
  Update bazlets and bazel version

Change-Id: If1b5a2b380cf155e66bf5d5c6d216f86c919bb37

3 years agoPrepare 5.1.17-SNAPSHOT builds 72/181472/1
Matthias Sohn [Fri, 4 Jun 2021 22:45:08 +0000 (00:45 +0200)]
Prepare 5.1.17-SNAPSHOT builds

Change-Id: I20c69728465f956a5744a75eb548ef18962286dd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
3 years agoJGit v5.1.16.202106041830-r 71/181471/1 v5.1.16.202106041830-r
Matthias Sohn [Fri, 4 Jun 2021 22:31:03 +0000 (00:31 +0200)]
JGit v5.1.16.202106041830-r

Change-Id: I526ed2a08553bc0b2678aaefaff9e0c6529baefc
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
3 years agoMerge changes I853ac6c7,I01878116,Ie994fc18 into stable-5.1
Matthias Sohn [Fri, 4 Jun 2021 22:21:31 +0000 (18:21 -0400)]
Merge changes I853ac6c7,I01878116,Ie994fc18 into stable-5.1

* changes:
  BatchRefUpdate: Skip saving conflicting ref names and prefixes in memory
  BatchRefUpdateTest: Accurately assert RefsChangedEvent(s) fired
  Optimize RefDirectory.isNameConflicting()

3 years agoMerge branch 'stable-5.12' 17/181417/1
Matthias Sohn [Thu, 3 Jun 2021 21:50:51 +0000 (23:50 +0200)]
Merge branch 'stable-5.12'

* stable-5.12:
  Update Orbit to R20210602031627
  Prepare 5.12.0-SNAPSHOT builds
  JGit v5.12.0.202106021050-rc1
  Prepare 5.12.0-SNAPSHOT builds
  JGit v5.12.0.202106011439-rc1
  Prepare 5.12.0-SNAPSHOT builds
  JGit v5.12.0.202105261145-m3

Change-Id: Iaf5d65a6e23c4d262fcb3dd3eda42bd634a38aad

3 years agoUpdate Orbit to R20210602031627 02/181402/1
Matthias Sohn [Thu, 3 Jun 2021 19:35:32 +0000 (21:35 +0200)]
Update Orbit to R20210602031627

Change-Id: I480093d9da393dae0c3b608762d38cba3db2f2b9
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
3 years agoPrepare 5.12.0-SNAPSHOT builds 97/181397/1
Matthias Sohn [Thu, 3 Jun 2021 18:04:28 +0000 (20:04 +0200)]
Prepare 5.12.0-SNAPSHOT builds

Change-Id: Ifc72d3f3ac84b9c4055b95ec0093d877ffb09ab0
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
3 years agoFixing visibility for HostEntry constructors. 23/181323/1
Demetr Starshov [Wed, 2 Jun 2021 23:19:39 +0000 (16:19 -0700)]
Fixing visibility for HostEntry constructors.

HostEntry class was public with empty constructor, so adding
constructors with default visibility actually reduced visibility of
constructor.

Change-Id: I4c996c0559102084946ba49a71afe10dda5e0f95

3 years agoJGit v5.12.0.202106021050-rc1 96/181296/1 v5.12.0.202106021050-rc1
Matthias Sohn [Wed, 2 Jun 2021 14:49:17 +0000 (16:49 +0200)]
JGit v5.12.0.202106021050-rc1

Change-Id: I622ee049f14f37504ff4a062f03d6fc25465d0ec
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
3 years agoPrepare 5.12.0-SNAPSHOT builds 50/181250/1
Matthias Sohn [Wed, 2 Jun 2021 06:47:28 +0000 (08:47 +0200)]
Prepare 5.12.0-SNAPSHOT builds

Change-Id: I25e4efc9b40ae4e7168b37385445c73992c5beb0