]> source.dussan.org Git - jgit.git/log
jgit.git
5 years agoMerge branch 'stable-5.5' 52/152452/1
Matthias Sohn [Mon, 11 Nov 2019 19:07:01 +0000 (11:07 -0800)]
Merge branch 'stable-5.5'

* stable-5.5:
  BaseReceivePack: Fix the format
  Prepend hostname to subsection used to store file timestamp resolution
  Store filesystem timestamp resolution in extra jgit config
  SystemReader: extract updating config and its parents if outdated

Change-Id: Iecfddce8081303af29badcdcd3d72a0da50c964f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoBaseReceivePack: Fix the format 55/152355/2
Masaya Suzuki [Fri, 8 Nov 2019 01:17:21 +0000 (17:17 -0800)]
BaseReceivePack: Fix the format

Change-Id: I6136ef5318f81a6feb1267338ca76e60122fd15b
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
5 years agoPrepend hostname to subsection used to store file timestamp resolution 40/150740/9
Matthias Sohn [Mon, 7 Oct 2019 17:05:07 +0000 (19:05 +0200)]
Prepend hostname to subsection used to store file timestamp resolution

This ensures the measured filesystem timestamp resolution will be only
used on the machine where it was measured and avoid errors in case the
~/.jgitconfig file is copied to another machine.

Bug: 551850
Change-Id: Iff2a11be62ca94c3bbe4a955182988dc50852f9f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoStore filesystem timestamp resolution in extra jgit config 39/150739/9
Matthias Sohn [Mon, 7 Oct 2019 15:58:56 +0000 (17:58 +0200)]
Store filesystem timestamp resolution in extra jgit config

This avoids polluting hand-crafted user level config with
auto-configured options which might disturb in environments where
the user level config is replicated between different machines.

Add a jgit config as parent of the system level config. Persist
measured timestamp resolutions always in this jgit config and read it
via the user global config. This has the effect that auto-configured
timestamp resolution will be used by default and can be overridden in
either the system level or user level config.

Store the jgit config under the XDG_CONFIG_HOME directory following the
XDG base directory specification [1] in order to ensure that we have
write permissions to persist the file. This has the effect that each OS
user will use its jgit config since they typically use different
XDG_CONFIG_HOME directories.

If the environment variable XDG_CONFIG_HOME is defined the jgit config
file is located at $XDG_CONFIG_HOME/jgit/config otherwise the default is
~/.config/jgit/config.

If you want to avoid redundant measurement for different OS users
manually copy the values measured and auto-configured for one OS user to
the system level git config.

[1] https://wiki.archlinux.org/index.php/XDG_Base_Directory

Bug: 551850
Change-Id: I0022bd40ae62f82e5b964c2ea25822eb55d94687
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoUpdate bouncycastle version to 1.64 and Orbit to I20191106190530 95/151295/6
David Ostrovsky [Fri, 18 Oct 2019 08:21:27 +0000 (04:21 -0400)]
Update bouncycastle version to 1.64 and Orbit to I20191106190530

The recent versions fixed number of defects and added new features: [1].
Use Orbit I20191106190530 until a S-build is available.

[1] https://www.bouncycastle.org/releasenotes.html

Change-Id: I0f2fd3a218ea31f6f6b58b1816af9361e4de54e4
Signed-off-by: David Ostrovsky <d.ostrovsky@gmx.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoSystemReader: extract updating config and its parents if outdated 47/149947/8
Thomas Wolf [Sat, 21 Sep 2019 12:38:22 +0000 (14:38 +0200)]
SystemReader: extract updating config and its parents if outdated

Change-Id: Ia77f442e47c5670c2d6d279ba862044016aabd86
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoUpgrade maven-jar-plugin to 3.2.0 36/152036/2
David Pursehouse [Tue, 5 Nov 2019 13:49:48 +0000 (22:49 +0900)]
Upgrade maven-jar-plugin to 3.2.0

Change-Id: I74fc2a6b1a79f1433914b909e92e524668817081
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years agoUpgrade maven-source-plugin to 3.2.0 35/152035/2
David Pursehouse [Tue, 5 Nov 2019 13:49:16 +0000 (22:49 +0900)]
Upgrade maven-source-plugin to 3.2.0

Change-Id: I0c683e100b64f6d66e2598cb06970a547aaeaed6
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years agoMerge branch 'stable-5.5' 83/152183/1
Matthias Sohn [Wed, 6 Nov 2019 20:07:09 +0000 (21:07 +0100)]
Merge branch 'stable-5.5'

* stable-5.5:
  Fix benchmark pom.xml to include distribution managment config

Change-Id: Ife566e83777e3282892d6f7a90400b00e9065292

5 years agoMerge branch 'stable-5.4' into stable-5.5 82/152182/1
Matthias Sohn [Wed, 6 Nov 2019 20:05:07 +0000 (21:05 +0100)]
Merge branch 'stable-5.4' into stable-5.5

* stable-5.4:
  Fix benchmark pom.xml to include distribution managment config

Change-Id: I1863f641880e8d9fbd26c02ede6bf5d773e8c8a0

5 years agoMerge branch 'stable-5.3' into stable-5.4 81/152181/1
Matthias Sohn [Wed, 6 Nov 2019 20:02:14 +0000 (21:02 +0100)]
Merge branch 'stable-5.3' into stable-5.4

* stable-5.3:
  Fix benchmark pom.xml to include distribution managment config

Change-Id: Ib4eed75cc8c5146884ce1461e98564de1c759bba

5 years agoMerge branch 'stable-5.2' into stable-5.3 80/152180/1
Matthias Sohn [Wed, 6 Nov 2019 20:00:07 +0000 (21:00 +0100)]
Merge branch 'stable-5.2' into stable-5.3

* stable-5.2:
  Fix benchmark pom.xml to include distribution managment config

Change-Id: Icda57b0045ba87d9424615713d7d706697e5c236

5 years agoMerge branch 'stable-5.1' into stable-5.2 79/152179/1
Matthias Sohn [Wed, 6 Nov 2019 19:57:46 +0000 (20:57 +0100)]
Merge branch 'stable-5.1' into stable-5.2

* stable-5.1:
  Fix benchmark pom.xml to include distribution managment config

Change-Id: I20e8b7155397771b1bc77e628f535f27458a24bb

5 years agoFix benchmark pom.xml to include distribution managment config 64/152164/2
Matthias Sohn [Wed, 6 Nov 2019 16:49:48 +0000 (17:49 +0100)]
Fix benchmark pom.xml to include distribution managment config

Also fix indentation.

Change-Id: I6d223c493d537bb8aac23c7ddf0a602aff22a3c2
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoMerge branch 'stable-5.5' 14/152114/1
Matthias Sohn [Tue, 5 Nov 2019 15:28:06 +0000 (16:28 +0100)]
Merge branch 'stable-5.5'

* stable-5.5:
  Run JMH benchmarks using bazel
  Benchmark for creating files and FileSnapshots
  Implement benchmark for looking up FileStore of a given Path
  JMH benchmark for SimpleLruCache
  Update API problem filters
  Remove unused API problem filters
  Silence API errors for new API added since 5.1.0

Change-Id: If87a13d0f809d9968ad2921b786f4b18e1b494d0
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoMerge branch 'stable-5.4' into stable-5.5 59/152059/1
Matthias Sohn [Tue, 5 Nov 2019 15:10:48 +0000 (16:10 +0100)]
Merge branch 'stable-5.4' into stable-5.5

* stable-5.4:
  Run JMH benchmarks using bazel
  Benchmark for creating files and FileSnapshots
  Implement benchmark for looking up FileStore of a given Path
  JMH benchmark for SimpleLruCache
  Update API problem filters
  Remove unused API problem filters
  Silence API errors for new API added since 5.1.0

Change-Id: I071536d630a95e89f5bbbf965a1571b9f5eb81ee
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoMerge branch 'stable-5.3' into stable-5.4 56/152056/1
Matthias Sohn [Tue, 5 Nov 2019 14:42:14 +0000 (15:42 +0100)]
Merge branch 'stable-5.3' into stable-5.4

* stable-5.3:
  Run JMH benchmarks using bazel
  Benchmark for creating files and FileSnapshots
  Implement benchmark for looking up FileStore of a given Path
  JMH benchmark for SimpleLruCache
  Update API problem filters
  Remove unused API problem filters
  Silence API errors for new API added since 5.1.0

Change-Id: Ib735c4039e24ec8b045ae2cc81df1e9e5c9fa996
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoMerge branch 'stable-5.2' into stable-5.3 50/152050/1
Matthias Sohn [Tue, 5 Nov 2019 14:24:54 +0000 (15:24 +0100)]
Merge branch 'stable-5.2' into stable-5.3

* stable-5.2:
  Run JMH benchmarks using bazel
  Benchmark for creating files and FileSnapshots
  Implement benchmark for looking up FileStore of a given Path
  JMH benchmark for SimpleLruCache
  Update API problem filters
  Remove unused API problem filters
  Silence API errors for new API added since 5.1.0

Change-Id: I00615958ab6fbdff601e87a9792aba5606cda12a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoMerge branch 'stable-5.1' into stable-5.2 73/151973/2
Matthias Sohn [Tue, 5 Nov 2019 14:07:39 +0000 (15:07 +0100)]
Merge branch 'stable-5.1' into stable-5.2

* stable-5.1:
  Run JMH benchmarks using bazel
  Benchmark for creating files and FileSnapshots
  Implement benchmark for looking up FileStore of a given Path
  JMH benchmark for SimpleLruCache
  Remove unused API problem filters
  Silence API errors for new API added since 5.1.0

Change-Id: If91c55a192d3b2c441d9c8d414f2e24a7261b1b6
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoRun JMH benchmarks using bazel 23/147023/12
Matthias Sohn [Sun, 4 Aug 2019 17:04:41 +0000 (19:04 +0200)]
Run JMH benchmarks using bazel

The benchmarks can be built and run using bazel by running:

$ bazel run //org.eclipse.jgit.benchmarks:benchmarks

Change-Id: I6679750eaa0f2be30ed9d45036e013b0ea4fcc86
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoBenchmark for creating files and FileSnapshots 71/147171/7
Matthias Sohn [Wed, 7 Aug 2019 09:51:30 +0000 (11:51 +0200)]
Benchmark for creating files and FileSnapshots

Change-Id: I953fd8b6b9743b0b9cada244331253eb2121784d
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoImplement benchmark for looking up FileStore of a given Path 66/147066/7
Matthias Sohn [Mon, 5 Aug 2019 14:26:20 +0000 (16:26 +0200)]
Implement benchmark for looking up FileStore of a given Path

Results on Mac OS 10.14.6 using APFS:

Result "org.eclipse.jgit.benchmarks.LookupFileStoreBenchmark.testLookupFileStore":
  44583.277 ±(99.9%) 2666.096 ns/op [Average]
  (min, avg, max) = (43707.073, 44583.277, 45320.685), stdev = 692.377
  CI (99.9%): [41917.181, 47249.373] (assumes normal distribution)

Secondary result
"org.eclipse.jgit.benchmarks.LookupFileStoreBenchmark.testLookupFileStore:·stack":
Stack profiler:

....[Thread state
distributions]........................................................
100.0%         RUNNABLE

....[Thread state:
RUNNABLE].............................................................
 42.5%  42.5% sun.nio.fs.UnixNativeDispatcher.realpath0
 37.9%  37.9% sun.nio.fs.UnixNativeDispatcher.stat0
 11.0%  11.0% sun.nio.fs.BsdNativeDispatcher.getfsstat
  7.6%   7.6% sun.nio.fs.BsdNativeDispatcher.fsstatEntry
  0.7%   0.7% sun.nio.fs.BsdNativeDispatcher.endfsstat
  0.1%   0.1% sun.nio.fs.UnixPath.initOffsets
  0.0%   0.0% sun.nio.fs.UnixFileAttributes.get
  0.0%   0.0% java.util.zip.Inflater.inflateBytes
  0.0%   0.0% sun.misc.Unsafe.compareAndSwapInt
  0.0%   0.0% sun.nio.fs.BsdFileStore.findMountEntry

This shows that FS.attrCacheByPath should be useful to reduce overhead
of looking up the FileStore of a given file.

Change-Id: I7213086b42e0453f0ee149660d507dac2a4644cc
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoJMH benchmark for SimpleLruCache 22/147022/10
Matthias Sohn [Sat, 3 Aug 2019 10:02:34 +0000 (12:02 +0200)]
JMH benchmark for SimpleLruCache

See [1] for JMH documentation and [2] how to use JMH in Eclipse.

The benchmarks pom currently cannot use the JGit parent pom due to an
ecj bug [3] regarding annotation processing. Hence for now do not
inherit from the JGit parent pom and copy the compiler plugin
configuration for javac from the parent pom.

After running the Maven build the benchmark can be run using Maven:

$ java -jar org.eclipse.jgit.benchmarks/target/benchmarks.jar

or in Eclipse by running the main method of the SimpleLruCacheBenchmark
class.

[1] https://openjdk.java.net/projects/code-tools/jmh/
[2] http://alblue.bandlem.com/Page/3/index.html
[3] https://eclip.se/532029

CQ: 20517
CQ: 20518
Change-Id: Idca8a9e0980f0b8a9c741c4c9e97d03c62f07c8d
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoUpdate API problem filters 72/151972/1
Matthias Sohn [Mon, 4 Nov 2019 15:24:55 +0000 (16:24 +0100)]
Update API problem filters

- filter errors for new APIs added in service release
- remove unused filters

Change-Id: Ifbf532b8a3c46d4ed78a38f6c75073a072b7f669
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoRemove unused API problem filters 48/151948/1
Matthias Sohn [Mon, 4 Nov 2019 12:28:23 +0000 (13:28 +0100)]
Remove unused API problem filters

Change-Id: I0ae0fd4919b7ccc5218c6eb0fab22350bb9c9714
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoSilence API errors for new API added since 5.1.0 47/151947/1
Matthias Sohn [Mon, 4 Nov 2019 12:25:37 +0000 (13:25 +0100)]
Silence API errors for new API added since 5.1.0

Change-Id: I92a7c1b0319d61aeb25f58048bd07c144068c3db
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoDirCacheCheckout: don't use deprecated method 18/151918/1
Thomas Wolf [Sun, 3 Nov 2019 09:14:40 +0000 (10:14 +0100)]
DirCacheCheckout: don't use deprecated method

Pass the CheckoutMetadata to checkoutEntry(), otherwise cr-lf settings
and smudge filters would be ignored.

Change-Id: Ifb1c4cb098a0b47c9752d0231d530db6a92b25a4
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoWorkingTreeModifiedEvent: must be fired explicitly after merge 10/151910/2
Thomas Wolf [Sat, 2 Nov 2019 18:26:42 +0000 (19:26 +0100)]
WorkingTreeModifiedEvent: must be fired explicitly after merge

A merge may write files to the working tree. After a successful
merge one must fire a WorkingTreeModifiedEvent explicitly if
getModifiedFiles() is not empty.

Also, any touched files must be reported by the
WorkingTreeModifiedEvent fired by DirCacheCheckout.checkout().

Bug: 552636
Change-Id: I5fab8279ed8be8a4ae34cddfa726836b9277aea6
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoMerge "HttpSupport.proxyFor(): use only scheme, host, and port"
David Pursehouse [Wed, 30 Oct 2019 23:20:30 +0000 (19:20 -0400)]
Merge "HttpSupport.proxyFor(): use only scheme, host, and port"

5 years agoreftable: enforce ascending order in sortAndWriteRefs 61/151061/8
Han-Wen Nienhuys [Sun, 13 Oct 2019 16:14:17 +0000 (18:14 +0200)]
reftable: enforce ascending order in sortAndWriteRefs

MergedReftableTest#scanDuplicates tests whether we can write duplicate
keys in a merged reftable. Apparently, the first key appearing should
get precedence, and this works because the sort() algorithm on ordered
collections is stable.

This is potentially confusing behavior, because you can write data
into the table that cannot be retrieved (Merged table can only have
one entry per key), and the APIs such as exactRef() only return a
single value.

Make this consistent with behavior introduced in I04f55c481 "reftable:
enforce ordering for ref and log writes" by considering a duplicate key
in sortAndWriteRefs as a fatal runtime error.

Change-Id: I1eedd18f028180069f78c5c467169dcfe1521157
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
5 years agoHttpSupport.proxyFor(): use only scheme, host, and port 84/146884/2
Thomas Wolf [Wed, 31 Jul 2019 17:40:40 +0000 (19:40 +0200)]
HttpSupport.proxyFor(): use only scheme, host, and port

Some URLs cannot be converted via URL.toURI(). So don't convert
the full URL but only the bits that are needed to find a proxy
via java.net.ProxySelector.

Bug: 549690
Change-Id: I55b5ecee70c6b52f72f9bdba9ce552fde7f33976
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoDocumentation/technical/reftable: change suggested file names 42/148142/5
Han-Wen Nienhuys [Thu, 22 Aug 2019 13:47:17 +0000 (15:47 +0200)]
Documentation/technical/reftable: change suggested file names

By using ${min_update}-${max_update} as file name template, we
guarantee that each file has a unique name.
This allows data from open files to be cached across reloads of the
stack.

This is in anticipation of Change I1837f268e
("file: implement FileReftableDatabase"), which is the first
implementation of reftable on a filesystem.

Change-Id: I7ef0610eb60c494165382d0c372afcf41f074393
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
5 years agoUpdate Orbit to S20191025144108 and Ant to 1.10.7.v20190926-0324 42/151742/2
Matthias Sohn [Tue, 29 Oct 2019 11:17:04 +0000 (12:17 +0100)]
Update Orbit to S20191025144108 and Ant to 1.10.7.v20190926-0324

This is the Orbit version for 2019-12 M2.

We tried earlier to update to Ant 1.10.7 but had to revert this since
there were issues with the previous artefact version in Orbit.

See platform bug 550793 for the list of changes since 1.10.6.

Change-Id: Ifb3212d4420e3656083784e842da2bd9bf750911
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoUpdate Tycho to 1.5.1 38/151738/1
Matthias Sohn [Tue, 29 Oct 2019 10:43:16 +0000 (11:43 +0100)]
Update Tycho to 1.5.1

This release fixes bug 552346 [1].

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=552346

Change-Id: I53be02c3702e62d3b5ceb85141b9798571a8ca0c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoUpgrade Jetty to 9.4.22.v20191022 06/151606/3
Michael Keppler [Fri, 25 Oct 2019 11:20:05 +0000 (13:20 +0200)]
Upgrade Jetty to 9.4.22.v20191022

Change-Id: Ie2ee0a978949f9cf70833645132eedf26c3cf1c8
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoMerge "[errorprone] Don't throw exception in finally"
David Pursehouse [Sat, 26 Oct 2019 01:56:06 +0000 (21:56 -0400)]
Merge "[errorprone] Don't throw exception in finally"

5 years agoMerge "[errorprone] Add parenthesis to clarify operator precedence"
David Pursehouse [Sat, 26 Oct 2019 01:55:33 +0000 (21:55 -0400)]
Merge "[errorprone] Add parenthesis to clarify operator precedence"

5 years agoReplace "Rebase interactive" with "Interactive rebase" 52/151552/2
Matthias Sohn [Thu, 24 Oct 2019 22:28:42 +0000 (00:28 +0200)]
Replace "Rebase interactive" with "Interactive rebase"

The RepositoryState's description is shown in EGit's interactive rebase
view. Use the grammatically correct form.

Bug: 552359
Change-Id: I860ef730a67f2b34d7fabbfbda5ea65ead9270d2
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago[errorprone] Don't throw exception in finally 29/151629/1
Matthias Sohn [Fri, 25 Oct 2019 13:11:42 +0000 (15:11 +0200)]
[errorprone] Don't throw exception in finally

Instead log the problem. There is no reason to panic when we fail to
delete a single temporary file in java.io.tmpdir.

Change-Id: Idb867b3f07b090c7453ccd3688e94097df3b2672
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years ago[errorprone] Add parenthesis to clarify operator precedence 28/151628/1
Matthias Sohn [Fri, 25 Oct 2019 13:15:03 +0000 (15:15 +0200)]
[errorprone] Add parenthesis to clarify operator precedence

This fixes OperatorPrecedence error raised by errorprone on FS#findHook.

Change-Id: Ia15f61902c7deff7328c1afa066fc53152949bbf
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoGPG: implement more OpenPGP UserId matching formats 54/151454/2
Thomas Wolf [Tue, 22 Oct 2019 22:55:28 +0000 (00:55 +0200)]
GPG: implement more OpenPGP UserId matching formats

Instead of just looking for a substring match of user.signingKey
in a key's user ID implement the GPG matching formats[1] for:

'=' Full exact match
'<' Full exact match of the e-mail address
'@' Substring match within the e-mail address only
'*' General case-insensitive substring match (default)

When user.signingKey is not set, the committer's e-mail address is
used by default. In that case, use '<', i.e., require an exact match
on the OpenPGP e-mail address.

Also handle the optional "0x" prefix for (partial) key fingerprints.

[1] https://www.gnupg.org/documentation/manuals/gnupg/Specify-a-User-ID.html

Bug: 550335
Change-Id: I6ce482a099ff1a0dc9de45435cd4d3ec5b504f12
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoMerge "reftable: remove assert calls"
Jonathan Tan [Tue, 22 Oct 2019 21:06:59 +0000 (17:06 -0400)]
Merge "reftable: remove assert calls"

5 years agoMerge "TreeRevFilterTest: Simplify filter used"
Jonathan Tan [Tue, 22 Oct 2019 17:36:46 +0000 (13:36 -0400)]
Merge "TreeRevFilterTest: Simplify filter used"

5 years agoTreeRevFilterTest: Simplify filter used 11/151411/2
Jonathan Tan [Tue, 22 Oct 2019 00:26:22 +0000 (17:26 -0700)]
TreeRevFilterTest: Simplify filter used

TreeRevFilterTest uses an unncessarily complicated TreeFilter - an
AndTreeFilter - when it should be as simple as possible because this
class tests TreeRevFilter, not AndTreeFilter. Replace the filter with a
simpler one.

Change-Id: I3256a65f6e0042d32fd76a9224b79a835674ff3a
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
5 years agoreftable: remove assert calls 26/151426/2
Han-Wen Nienhuys [Tue, 22 Oct 2019 09:56:45 +0000 (11:56 +0200)]
reftable: remove assert calls

The effect of assert is defined by compiler flags, so this code
introduced a potential vector for corruption.

Change-Id: I12197432e4351a5bd4aa24d352a19937721845c3
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
5 years agoMerge "GpgKeyLocator: Return a signing key for a user instead of the master key"
Gunnar Wagenknecht [Tue, 22 Oct 2019 05:22:26 +0000 (01:22 -0400)]
Merge "GpgKeyLocator: Return a signing key for a user instead of the master key"

5 years agoMerge "GpgKeyLocator: Return subkeys instead of the first key for subkeys"
Gunnar Wagenknecht [Tue, 22 Oct 2019 05:21:34 +0000 (01:21 -0400)]
Merge "GpgKeyLocator: Return subkeys instead of the first key for subkeys"

5 years agoGpgKeyLocator: Return a signing key for a user instead of the master key 13/151413/1
Roan Hofland [Tue, 22 Oct 2019 00:16:43 +0000 (02:16 +0200)]
GpgKeyLocator: Return a signing key for a user instead of the master key

Currently when a GPG key is looked up using a user identity the first
key from the keyring that has this user identity is returned.
The code was changed to instead return the first signing [S] key in this
keyring and only return the master key if no such signing key was found.
If the master key also does not have the signing flag set null is
returned instead.

Bug: 552288
Change-Id: I194862991d13c2c7ff34a60a54a227167f88f53b
Signed-off-by: Roan Hofland <roan.hofland@hotmail.com>
5 years agoGpgKeyLocator: Return subkeys instead of the first key for subkeys 12/151412/1
Roan Hofland [Tue, 22 Oct 2019 00:06:31 +0000 (02:06 +0200)]
GpgKeyLocator: Return subkeys instead of the first key for subkeys

Currently when a subkey is configured for signing via the git
user.signingkey configuration option the first key from the keyring for
this subkey would be returned for use (master key). The code has been
changed to return the requested key from the keyring instead.

Bug: 552288
Change-Id: I1c1cdf64c1667316a274ff9d829fc2b563797f2a
Signed-off-by: Roan Hofland <roan.hofland@hotmail.com>
5 years agoSupport for core.hooksPath 12/149912/7
Thomas Wolf [Fri, 20 Sep 2019 14:41:39 +0000 (16:41 +0200)]
Support for core.hooksPath

Support the core.hooksPath git config. This can be an absolute or
relative path of a directory where to find git hooks; a relative
path is resolved relative to the directory the hook will run in.

Bug: 500266
Change-Id: I671999a6386a837e897c31718583c91d8035f3ba
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoUpgrade Tycho to 1.5.0 92/151392/1
Michael Keppler [Mon, 21 Oct 2019 14:18:01 +0000 (16:18 +0200)]
Upgrade Tycho to 1.5.0

Change-Id: Iff3efa87997b635d84efca5b916436cc06ed9717
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
5 years agoClose ObjectReaders in tests 70/151370/1
Thomas Wolf [Mon, 21 Oct 2019 09:38:00 +0000 (11:38 +0200)]
Close ObjectReaders in tests

Change-Id: Ic839af4f85861fb48091d45679e2a614f001d770
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoClose some Repository instances in tests 69/151369/1
Thomas Wolf [Mon, 21 Oct 2019 09:23:48 +0000 (11:23 +0200)]
Close some Repository instances in tests

This doesn't yet ensure that _all_ repositories are closed. It only
handles the obvious, local, and easy cases.

Change-Id: I0f9f8607791f0f03ed1f5ad71e9595e78b78892f
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoClose ObjectInserters in tests 68/151368/1
Thomas Wolf [Mon, 21 Oct 2019 09:16:38 +0000 (11:16 +0200)]
Close ObjectInserters in tests

Change-Id: I0048a9ae23aee79cfecafb15855c63cd92818c57
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoUpgrade jacoco-maven-plugin to 0.8.5 80/151080/4
David Pursehouse [Tue, 15 Oct 2019 00:08:48 +0000 (09:08 +0900)]
Upgrade jacoco-maven-plugin to 0.8.5

Change-Id: If1c3c661f9bcaf0ce806f6bd5e2a3919d6635d78
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years ago[pgm] Add --mirror option to clone command 53/151353/3
Matthias Sohn [Sun, 20 Oct 2019 16:08:59 +0000 (18:08 +0200)]
[pgm] Add --mirror option to clone command

Bug: 552173
Change-Id: Ic8a98b2e0f8f29afd599723f93e51b06b9f13314
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoRemove meaningless comment in CloneCommandTest 62/151362/1
Matthias Sohn [Mon, 21 Oct 2019 07:29:50 +0000 (09:29 +0200)]
Remove meaningless comment in CloneCommandTest

This comment was probably copied from testCloneRepositoryWithBranch() to
testBareCloneRepositoryOnlyOneBranch() where it doesn't make sense.
Hence remove it.

Change-Id: I846debd084dd77fd473c3602a799f195a8390f77
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoImplement mirror option in CloneCommand 52/151352/2
Matthias Sohn [Fri, 18 Oct 2019 23:52:51 +0000 (01:52 +0200)]
Implement mirror option in CloneCommand

Bug: 552173
Change-Id: If79adf578b303890314a3285d7a6d2c71f48d091
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoAppServer: Stop using deprecated SslContextFactory constructor 05/151205/1
David Pursehouse [Thu, 17 Oct 2019 01:42:28 +0000 (10:42 +0900)]
AppServer: Stop using deprecated SslContextFactory constructor

Use SslContextFactory.Client instead, as suggested in the deprecation
javadoc.

Change-Id: I746c953d3ad549c23d0e43eb4a18fc587e924f93
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years agoEnable and fix "Statement unnecessarily nested within else clause" warnings 03/151203/2
David Pursehouse [Thu, 17 Oct 2019 00:01:25 +0000 (09:01 +0900)]
Enable and fix "Statement unnecessarily nested within else clause" warnings

Since [1] the gerrit project includes jgit as a submodule, and has this
warning enabled, resulting in 100s of warnings in the console.

Also enable the warning here, and fix them.

At the same time, add missing braces around adjacent and nearby one-line
blocks.

[1] https://gerrit-review.googlesource.com/c/gerrit/+/227897

Change-Id: I81df3fc7ed6eedf6874ce1a3bedfa727a1897e4c
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years agoClose RevWalks in tests 80/151180/2
Thomas Wolf [Wed, 16 Oct 2019 15:49:52 +0000 (17:49 +0200)]
Close RevWalks in tests

Change-Id: Id28804ace2572e8f659271660e78454a0d6ccc49
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoMerge "reftable: split off generic code from DFS code"
Jonathan Tan [Wed, 16 Oct 2019 19:13:53 +0000 (15:13 -0400)]
Merge "reftable: split off generic code from DFS code"

5 years agoreftable: split off generic code from DFS code 01/147301/49
Han-Wen Nienhuys [Thu, 26 Sep 2019 11:40:26 +0000 (13:40 +0200)]
reftable: split off generic code from DFS code

This introduces ReftableBatchRefUpdate and ReftableDatabase, as
generic classes, with some code moved to DfsReftableBatchRefUpdate and
DfsReftableDatabase.

Clarify thread-safety requirements by asserting locked status in
accessors, and acquiring locks in callers. This does not fix threading
problems, because ReftableBatchRefUpdate already wraps the whole
transaction in a lock.

This also fixes a number of bugs in ReftableBatchRefUpdate:

* non-atomic updates should not bail on first failure

* isNameConflicting should also check for conflicts between names that
  are added and removed in the BatchRefUpdate.

Change-Id: I5ec91173ea9a0aa19da444c8c0b2e0f4e8f88798
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoMerge "reftable: fix lookup by ID in merged reftables"
Jonathan Tan [Wed, 16 Oct 2019 17:33:20 +0000 (13:33 -0400)]
Merge "reftable: fix lookup by ID in merged reftables"

5 years agoreftable: fix lookup by ID in merged reftables 62/151062/3
Han-Wen Nienhuys [Sun, 13 Oct 2019 17:21:06 +0000 (19:21 +0200)]
reftable: fix lookup by ID in merged reftables

On changing a ref, the old SHA1 is not updated in the object => ref
mapping. This means search by object ID may still turn up a ref from
deeper within the stack. To fix this, check all refs produced by the
merged iterator against the merged reftables.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Change-Id: I41e9cd395b0608eedeeaead0a9fd997238d747c9

5 years agoMerge changes I6e022e4a,If1b9d808
David Pursehouse [Wed, 16 Oct 2019 00:11:35 +0000 (20:11 -0400)]
Merge changes I6e022e4a,If1b9d808

* changes:
  Close TreeWalks in tests
  Close SubmoduleWalks in tests

5 years agoMerge "IndexDiff: close SubmoduleWalk and use already loaded DirCache"
Christian Halstrick [Tue, 15 Oct 2019 21:06:12 +0000 (17:06 -0400)]
Merge "IndexDiff: close SubmoduleWalk and use already loaded DirCache"

5 years agoProtocolV2Parser: Introduce advertise sideband-all option 63/150863/7
Ivan Frade [Wed, 9 Oct 2019 23:40:17 +0000 (16:40 -0700)]
ProtocolV2Parser: Introduce advertise sideband-all option

The flag enabling sideband-all is used in two places: in UploadPack
for advertisement and in the protocol parser to read it from the
request.

This leds to problems in distributed deployments where the two requests of
a fetch can go to different servers with different configurations.

Use the existing allowsidebandall to accept the sideband-all request
(and respond to it) and introduce a new "advertisesidebandall" to toggle
the advertising of the feature.

Change-Id: I892d541bc3f321606c89bad1d333b079dce6b5fa
Signed-off-by: Ivan Frade <ifrade@google.com>
5 years agoClose TreeWalks in tests 85/151085/2
Thomas Wolf [Tue, 15 Oct 2019 06:52:39 +0000 (08:52 +0200)]
Close TreeWalks in tests

Note that TreeWalk.forPath() needs not be closed; the ObjectReader
_is_ closed when that method returns.

Change-Id: I6e022e4a2fde0c88d610a82de092ea541b33f75c
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoClose SubmoduleWalks in tests 78/151078/2
Thomas Wolf [Mon, 14 Oct 2019 22:58:27 +0000 (00:58 +0200)]
Close SubmoduleWalks in tests

Change-Id: If1b9d80830b6b136d4ab33f5c7043b140bd92f85
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoIndexDiff: close SubmoduleWalk and use already loaded DirCache 63/151063/2
Thomas Wolf [Mon, 14 Oct 2019 19:06:18 +0000 (21:06 +0200)]
IndexDiff: close SubmoduleWalk and use already loaded DirCache

If the SubModuleWalk isn't closed its TreeWalk's ObjectReader won't
be closed. Re-loading the DirCache during an IndexDiff is not only
inefficient but could also give strange results if an external
process had modified the index in the meantime: file diffs would
be based on a "before" state, but submodule diffs on an "after"
state.

Change-Id: Iab948c08ac342138b37263c9028d80b84101f6d6
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoDfsPackFile: Remove unused parameter from loadReverseIdx method 67/150667/4
David Pursehouse [Mon, 7 Oct 2019 01:04:27 +0000 (10:04 +0900)]
DfsPackFile: Remove unused parameter from loadReverseIdx method

Change-Id: I2373084c8b40ebd6f432806dddc8633a76938e80
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years agoSilence API errors for new fields added to PackStatistics.Accumulator 78/150978/1
Matthias Sohn [Sat, 12 Oct 2019 16:25:33 +0000 (18:25 +0200)]
Silence API errors for new fields added to PackStatistics.Accumulator

These fields were added in a307c887.

Change-Id: I9e80abdb6f48dc7bf72de683dcf3566d2dab611f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoRemove unused API warning filters 76/150976/1
Matthias Sohn [Fri, 11 Oct 2019 13:08:06 +0000 (15:08 +0200)]
Remove unused API warning filters

Change-Id: I78262681e12079028752d8c144720ad0256c5707
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoAdd missing @since tag to UploadPack#uploadWithExceptionPropagation 75/150975/1
Matthias Sohn [Fri, 11 Oct 2019 13:07:02 +0000 (15:07 +0200)]
Add missing @since tag to UploadPack#uploadWithExceptionPropagation

This was missed in b8d9734c

Change-Id: I4b9c1cf058eff16af725375047d743944e7f5db4
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoMerge branch 'stable-5.5' 73/150973/1
David Pursehouse [Sat, 12 Oct 2019 00:40:45 +0000 (09:40 +0900)]
Merge branch 'stable-5.5'

* stable-5.5:
  Bazel: Bump bazel version to 1.0.0

Change-Id: I1dc833e8de7a0c54492ea847fb74971ecf438e51
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years agoMerge branch 'stable-5.4' into stable-5.5 72/150972/1
David Pursehouse [Sat, 12 Oct 2019 00:39:42 +0000 (09:39 +0900)]
Merge branch 'stable-5.4' into stable-5.5

* stable-5.4:
  Bazel: Bump bazel version to 1.0.0

Change-Id: I967ad9e0fa6f13c5217aafb8faedc4a7dfb37c58
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years agoCachedPackUriProvider: size should be a long (not an int) 71/150971/1
Ivan Frade [Fri, 11 Oct 2019 23:23:23 +0000 (16:23 -0700)]
CachedPackUriProvider: size should be a long (not an int)

Change-Id: I5cd8b6376cdec59c5ead318edc5385da961511ec
Signed-off-by: Ivan Frade <ifrade@google.com>
5 years agoMerge branch 'stable-5.3' into stable-5.4 70/150970/1
Matthias Sohn [Fri, 11 Oct 2019 22:28:06 +0000 (00:28 +0200)]
Merge branch 'stable-5.3' into stable-5.4

* stable-5.3:
  Bazel: Bump bazel version to 1.0.0

Change-Id: If07e2ff3281dc96bec206b68631d22be8fd4636a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoMerge changes from topic 'packfile-offloading-stats'
Jonathan Tan [Fri, 11 Oct 2019 21:50:29 +0000 (17:50 -0400)]
Merge changes from topic 'packfile-offloading-stats'

* changes:
  PackWriter/Statistics: Report offloaded size
  CachedPackUriProvider: Add size to the pack information

5 years agoMerge branch 'stable-5.2' into stable-5.3 69/150969/1
Matthias Sohn [Fri, 11 Oct 2019 21:43:40 +0000 (23:43 +0200)]
Merge branch 'stable-5.2' into stable-5.3

* stable-5.2:
  Bazel: Bump bazel version to 1.0.0

Change-Id: Ife26567c08ec053741c9db4ca8b5b2836044dcde
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoPackWriter/Statistics: Report offloaded size 61/150861/3
Ivan Frade [Wed, 9 Oct 2019 21:29:11 +0000 (14:29 -0700)]
PackWriter/Statistics: Report offloaded size

Add to statistics the amount and size of packfiles offloaded to HTTP
download.

Change-Id: I895a7219ecac2794368bfc4fdfae74c1238deed9
Signed-off-by: Ivan Frade <ifrade@google.com>
5 years agoCachedPackUriProvider: Add size to the pack information 60/150860/3
Ivan Frade [Wed, 9 Oct 2019 21:10:14 +0000 (14:10 -0700)]
CachedPackUriProvider: Add size to the pack information

The object identifying packfiles to send them via packfile-uri contains
only the uri and the hash. This is the information that goes through the
wire. It would be useful to know also the size of those packfile, for
example to track how many bytes have been offloaded to HTTP.

Add size field the CachedPackUriProvider.PackInfo object.

Change-Id: If6b921b48a4764d936141c777879b148cc80bbd3
Signed-off-by: Ivan Frade <ifrade@google.com>
5 years agoMerge branch 'stable-5.1' into stable-5.2 68/150968/1
Matthias Sohn [Fri, 11 Oct 2019 18:00:56 +0000 (20:00 +0200)]
Merge branch 'stable-5.1' into stable-5.2

* stable-5.1:
  Bazel: Bump bazel version to 1.0.0

Change-Id: I067d8ebd15f35f139d86bc67473b42afac4f0f53

5 years agoBazel: Bump bazel version to 1.0.0 24/150924/2
David Pursehouse [Fri, 11 Oct 2019 00:41:43 +0000 (09:41 +0900)]
Bazel: Bump bazel version to 1.0.0

Change-Id: I607915af0556efe8b2fb640e9387029b755d1a7f
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years agoMerge "http: Allow specifying a custom error handler for UploadPack"
Terry Parker [Wed, 9 Oct 2019 22:26:48 +0000 (18:26 -0400)]
Merge "http: Allow specifying a custom error handler for UploadPack"

5 years agoMerge changes Ieebbd671,I0e3e9456,Ia8d72e31
Terry Parker [Wed, 9 Oct 2019 19:55:48 +0000 (15:55 -0400)]
Merge changes Ieebbd671,I0e3e9456,Ia8d72e31

* changes:
  UploadPack: Create a method that propagates an exception as-is
  UploadPack: Consolidate the sideband handling code to one place
  UploadPack: Introduce ErrorWriter

5 years agohttp: Allow specifying a custom error handler for UploadPack 44/147144/10
Masaya Suzuki [Tue, 6 Aug 2019 19:02:23 +0000 (12:02 -0700)]
http: Allow specifying a custom error handler for UploadPack

By abstracting the error handler, this lets a user customize the error
handler for UploadPack. A customized error handler can show a custom
error message to the clients based on the exception thrown from the
hook, create a monitoring system for server errors, or do custom
logging.

Change-Id: Idd3b87d6bd471fef807c0cf1183e904b2886157e
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
5 years agoUploadPack: Create a method that propagates an exception as-is 43/147143/8
Masaya Suzuki [Tue, 6 Aug 2019 18:12:43 +0000 (11:12 -0700)]
UploadPack: Create a method that propagates an exception as-is

Exception handling can be isolated from UploadPack. This makes it
possible to make the exception handler pluggable.

Change-Id: Ieebbd6711963c7f2e47a98783b4ad815793721c7
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
5 years agoUploadPack: Consolidate the sideband handling code to one place 26/146526/9
Masaya Suzuki [Tue, 23 Jul 2019 17:36:14 +0000 (10:36 -0700)]
UploadPack: Consolidate the sideband handling code to one place

This consolidates the sideband stream creation code and the error
handling code for the sideband-allowed part in the Git protocol to one
place.

Change-Id: I0e3e94564f50d1be32006f9d8bcd1ef1ce6bf07e
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
5 years agoUploadPack: Introduce ErrorWriter 27/146527/9
Masaya Suzuki [Tue, 23 Jul 2019 18:10:24 +0000 (11:10 -0700)]
UploadPack: Introduce ErrorWriter

ErrorWriter writes an error message to the user. The implementation is
swapped once it detects that the client supports sideband. By default it
uses the protocol level ERR packet, which was introduced recently.

In total the error output is done in two different places;
UploadPack#upload and UploadPack#sendPack. These will be consolidated in
the next change.

Change-Id: Ia8d72e31170bbeafc8ffa8ddb92702196af8a587
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
5 years agoApache HTTP: support proxy authentication 73/150173/2
Thomas Wolf [Sun, 11 Aug 2019 20:46:44 +0000 (22:46 +0200)]
Apache HTTP: support proxy authentication

Add a credentials provider that forwards to the java.net.Authenticator.
Needed to support proxies requiring authentication.

Bug: 549832
Change-Id: I181ee27a6c9f1b3fa402ce58affdd5ff3f7c96c9
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoProtocolV2Parser: Add missing $NON-NLS suppression 66/150666/2
David Pursehouse [Mon, 7 Oct 2019 01:03:08 +0000 (10:03 +0900)]
ProtocolV2Parser: Add missing $NON-NLS suppression

Change-Id: If0a6eb9829a4790073f1c9baa2cfe39cb43f7d84
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years agoUploadPackTest: Stop using deprecated PacketLineIn constants 65/150665/2
David Pursehouse [Mon, 7 Oct 2019 00:50:40 +0000 (09:50 +0900)]
UploadPackTest: Stop using deprecated PacketLineIn constants

The DELIM and END constants are deprecated and using them causes
warnings. Replace them with the accessor methods.

Change-Id: Iadb27000755e8fd8c61d9218591f9d110b8265c8
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
5 years agoFix parsing of core.logAllRefUpdates 04/150504/4
Thomas Wolf [Wed, 2 Oct 2019 15:33:43 +0000 (17:33 +0200)]
Fix parsing of core.logAllRefUpdates

Also correctly parse the "always" value (allowed in canonical git
since git 2.12.0[1]). Adapt the ReflogWriter.

[1] https://github.com/git/git/commit/341fb2862

Bug: 551664
Change-Id: I051c76ca355a2ac8d6092de65f44b18bf9aeb125
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 years agoUpdate Jetty to 9.4.21.v20190926 22/150622/1
Matthias Sohn [Fri, 4 Oct 2019 20:21:35 +0000 (22:21 +0200)]
Update Jetty to 9.4.21.v20190926

Change-Id: If01a01015024db9743c38c59f920964b3c3a0539
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoCreate 4.14 staging target platform 21/150621/1
Matthias Sohn [Fri, 4 Oct 2019 20:34:55 +0000 (22:34 +0200)]
Create 4.14 staging target platform

Change-Id: I6d8a6a0af41775a40342d56665cbd4e2e4aa5c61
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
5 years agoMerge "Merge branch 'stable-5.5'"
Matthias Sohn [Fri, 4 Oct 2019 19:42:20 +0000 (15:42 -0400)]
Merge "Merge branch 'stable-5.5'"

5 years agoFix NPE in DfsPackCompactor.compactReftables 11/150611/1
Minh Thai [Fri, 4 Oct 2019 08:02:52 +0000 (01:02 -0700)]
Fix NPE in DfsPackCompactor.compactReftables

Output pack description needs to be initialized.

Change-Id: I4b66a18fa7020f528b312bc9f74b8d094ad6ad66
Signed-off-by: Minh Thai <mthai@google.com>
5 years agoMerge branch 'stable-5.5' 66/150566/1
Matthias Sohn [Thu, 3 Oct 2019 21:23:30 +0000 (23:23 +0200)]
Merge branch 'stable-5.5'

* stable-5.5:
  Prepare 5.5.2-SNAPSHOT builds
  JGit v5.5.1.201910021850-r
  Prepare 5.3.7-SNAPSHOT builds
  JGit v5.3.6.201910020505-r
  Prepare 5.1.13-SNAPSHOT builds
  JGit v5.1.12.201910011832-r
  Do not rely on ArrayIndexOutOfBoundsException to detect end of input

Change-Id: Iabebdc4786b52ec678caa798975428fda4ad7bd7
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>