Skip to content

Changes

Summary

  1. RenameDetector: Clarify rename limits <= 0 (details)
  2. Fix null return from FS.readPipe when command fails to launch (details)
  3. Fix out-of-bounds exception in RepoCommand#relative (details)
Commit a46b28808b303d326eb79c7a42aec0147e171a39 by Dave Borowitz
RenameDetector: Clarify rename limits <= 0

Change-Id: I8da386e02272316b8e5e5c2f31ce10ad98bcdb28
The file was modified org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java
Commit 2204cc986649265fd2748557f05f4521f177fa98 by Matthias Sohn
Fix null return from FS.readPipe when command fails to launch

When a command invoked from readPipe fails to launch (i.e. the exec call
fails due to a missing command executable), Process.start() throws,
which gets caught by the generic IOException handler, resulting in a
null return. This change detects this case and rethrows a
CommandFailedException instead.

Additionally, this change uses /bin/sh instead of bash for its posix
command failure test, to accomodate building in environments where bash
is unavailable.

Change-Id: Ifae51e457e5718be610c0a0914b18fe35ea7b008
Signed-off-by: Bryan Donlan <bdonlan@gmail.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
The file was modified org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
The file was modified org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FSTest.java
Commit 832808bd509c88f08848f3b0a75cbb4de7f55df6 by Matthias Sohn
Fix out-of-bounds exception in RepoCommand#relative

Change-Id: I9c91aa2ff037bff27a8131fba54be22f5f27d80d
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
The file was modified org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java
The file was modified org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java