summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | Merge branch 'stable-5.3'David Pursehouse2019-02-182-0/+13
|\ \ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stable-5.3: ObjectDirectory: extra logging on packfile exceptions Prepare 5.3.0-SNAPSHOT builds JGit v5.3.0.201901162155-m1 Fix tools/version.sh JGit v5.3.0.201901161700-m1 Change-Id: I3c511fbc08f21eec5bb49d443de33d43094da4a4
| * | | | | | | | | | | Merge branch 'stable-5.2' into stable-5.3David Pursehouse2019-02-181-0/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stable-5.2: ObjectDirectory: extra logging on packfile exceptions Change-Id: I4bbeb1d28ab042e3c6c74f7284f5d882ed034305
| | * | | | | | | | | | Merge branch 'stable-5.1' into stable-5.2David Pursehouse2019-02-181-0/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stable-5.1: ObjectDirectory: extra logging on packfile exceptions Change-Id: Id2fea30664d53b31ad026ee5ae06a5a24d731a52
| | | * | | | | | | | | ObjectDirectory: extra logging on packfile exceptionsLuca Milanesio2019-02-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Display extra logging, including the exception with the associated stacktrace, whenever a packFile can't be read and thus removed from the packlist. Change-Id: I97a4e31dc427bfcc0baae438dcbe2dcd4704b824 Signed-off-by: Luca Milanesio <luca.milanesio@gmail.com>
| * | | | | | | | | | | Prepare 5.3.0-SNAPSHOT buildsMatthias Sohn2019-01-1768-89/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9f0bf3ff2b26f4a8300c98206beb19c2b9d4946a Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * | | | | | | | | | | JGit v5.3.0.201901162155-m1v5.3.0.201901162155-m1Matthias Sohn2019-01-1768-89/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I350925ff3b1fba2c83a448bc4e6d67368573693e Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * | | | | | | | | | | Fix tools/version.shMatthias Sohn2019-01-171-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The script missed to update all but the first version in org.eclipse.jgit.coverage/pom.xml Change-Id: If8021accf07d7b57b477992cc0f1ba8ddc7db9a6 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * | | | | | | | | | | JGit v5.3.0.201901161700-m1v5.3.0.201901161700-m1Matthias Sohn2019-01-1768-89/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I935cae5ae09ee5598ebdf6d9209048afec0d42dc Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | Add missing @since tag for new API method getUpdateIndexMatthias Sohn2019-02-172-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Idd4a580e241a9105a55bc6f0457ad02a35e55faf Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | Fix NPE in PlotCommitListMatthias Sohn2019-02-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 544513 Change-Id: I2fca766bbdc441a2dca947fba5dde532de7a10fd Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | CommitBuilder: Deprecate setEncoding(String)David Pursehouse2019-02-182-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deprecate the method in favor of setEncoding(Charset). Update the only caller in the code base that was still using the deprecated variant. Change-Id: I6357f2d0c727007013c72e9d5b7c72a3f5f3f2b1 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* | | | | | | | | | | | CommitBuilder: Add missing periods on methods' JavadocDavid Pursehouse2019-02-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ibcf64b23de8534f7831d6e40ee4b0ad2bade74ce Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* | | | | | | | | | | | Upgrade wagon-ssh to 3.3.2David Pursehouse2019-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I203572eb47187d476622eb416f6ac8d791b747c1 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* | | | | | | | | | | | Fix bug in copyPackBypassCache's skip 'PACK' header logicMinh Thai2019-02-132-12/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug caused the pack to be 12 bytes short when cold cache. Also added test for copyPackAsIs method. Change-Id: Idf8fb0e50d1215245d4b032e2e00df4b218c115f Signed-off-by: Minh Thai <mthai@google.com>
* | | | | | | | | | | | Upgrade spotbugs to 3.1.11David Pursehouse2019-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I24bb63fc5e1241420f6fc72e8c4708d5201c4f2b Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* | | | | | | | | | | | Atomic file creation: hard-linking may not be allowedThomas Wolf2019-02-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android for instance forbids hard linking via a SELinux policy. If we can't hard link, the NFS work-around for atomic file creation cannot work at all. In this case, fall back to not using the hard-linking mechanism. Android throws an AccessDeniedException, so we catch that. The javadoc on Files.createLink() indicates that another possibility might be a SecurityException, so catch that, too. Bug: 543956 Change-Id: I551b7a45f7b2fbbd8cf94f0b7233dbd8a200520e Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
* | | | | | | | | | | | Update Orbit to S20190129210011Matthias Sohn2019-01-3013-28/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the Orbit stable build for 2019-03 M2 Change-Id: I6db8e030af6bcec9c50065cb66211280d366dfa8 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | Fix GC.deleteEmptyRefsFoldersMatthias Sohn2019-01-282-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This method tried to iterate spurious files which may exist in the .git/refs folder, e.g. on Mac a .DS_Store may have been created there by inspecting the folder using the finder application. This led to a NotDirectoryException when deleteEmptyRefsFolders tried to create an iterator for such a file entry. Skip files contained in the refs folder to ensure the method only tries to iterate contained folders but not files. Change-Id: I5f31e733072a35db1e93908a9c69a8891ae5c206 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | Enable cloning only specific tagsThomas Wolf2019-01-272-13/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Single-branch-clone should be able to clone a single tag. Enhance CloneCommand to accept also full refs of tags in setBranchesToClone(). Make sure we also include fetch ref specs for the fetch command for tags. This mimics the behavior of native git's single-branch clone: git clone --branch <tag> --single-branch <URI> Bug: 542611 Change-Id: I285cf043751d9b0ba71258ee8214c0e5d1191428 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
* | | | | | | | | | | | Delete jgit-4.5 target platformMatthias Sohn2019-01-272-100/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If38b605b98cad55ee83cb7c0a6a972489031e447 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | Add 4.11-staging target platform and update Orbit to I20190123233226Matthias Sohn2019-01-2719-106/+267
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update - org.apache.httpcomponents.httpcore to 4.4.10.v20190123-2214 - org.apache.httpcomponents.httpclient.source to 4.5.6.v20190123-2215 - org.bouncycastle.bcpg to 1.60.0.v20181210-2057 - org.bouncycastle.pkix to 1.60.0.v20181210-2057 - org.bouncycastle.prov to 1.60.0.v20181210-2057 Change-Id: I132b6686aa29b2a76cc529f7cae34115604c754d Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | Upgrade jacoco-maven-plugin to 0.8.3David Pursehouse2019-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1df9ed2d696613297f9e694876d94c28aaf56339 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* | | | | | | | | | | | Bazel: Format BUILD file with buildifierDavid Pursehouse2019-01-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ buildifier -lint=fix BUILD Change-Id: Ie2e069db3936ce6a85c4c29e6a0137cda5e21f09 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* | | | | | | | | | | | RenameBranchCommand: more consistent handling of short ref namesThomas Wolf2019-01-235-29/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several problems: * The command didn't specify whether it expected short or full names. * For the new name, it expected a short name, but then got confused if tags or both local and remote branches with the same name existed. * For the old name, it accepted either a short or a full name, but again got confused if a short name was given and a tag with the same name existed. With such an interface, one cannot use Repository.findRef() to reliably find the branch to rename. Use exactRef() for the new name as by the time the Ref is needed its full name is known. For determining the old Ref from the name, do the resolution explicitly: first try exactRef (assuming the old name is a full name); if that doesn't find anything, try "refs/heads/<old>" and "refs/remotes/<old>" explicitly. Throw an exception if the name is ambiguous, or if exactRef returned something that is not a branch (refs/tags/... or also refs/notes/...). Document in the javadoc what kind of names are valid, and add tests. A user can still shoot himself in the foot if he chooses exceptionally stupid branch names. For instance, it is still possible to rename a branch to "refs/heads/foo" (full name "refs/heads/refs/heads/foo"), but it cannot be renamed further using the new short name if a branch with the full name "refs/heads/foo" exists. Similar edge cases exist for other dumb branch names, like a branch with the short name "refs/tags/foo". Renaming using the full name is always possible. Bug: 542446 Change-Id: I34ac91c80c0a00c79a384d16ce1e727c550d54e9 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
* | | | | | | | | | | | SshdSessionFactory: generalize providing default keysThomas Wolf2019-01-224-24/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a mechanism for a subclass to provide its own set of default identities from anywhere as an Iterable<KeyPair>. The default implementation is functionally unchanged and uses the known default identity files in the ~/.ssh directory. A subclass can override the getDefaultKeys() function and return whatever keys are appropriate. Bug: 543152 Change-Id: I500d63146bc67e20e051f617790eb87c7cb500b6 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
* | | | | | | | | | | | Allow to check for signing keyGunnar Wagenknecht2019-01-223-13/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new API is intended for UIs to check if signing will be possible or would fail Bug: 543579 Change-Id: I6ce1fd4210e46d49dcdf420c99d08c93e022136c Signed-off-by: Gunnar Wagenknecht <gunnar@wagenknecht.org>
* | | | | | | | | | | | Handle premature EOF in BundleFetchConnectionThomas Wolf2019-01-222-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BundleFetchConnection.readLine() must abort on EOF, otherwise it gets stuck in an endless loop. Bug: 543390 Change-Id: I4cb3428560277888af114b928950d620bb6564f9 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
* | | | | | | | | | | | pgm: Fix missing braces in Version.run()Matthias Sohn2019-01-211-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4c5633846320f0324714f635b2be388b17cf79fa Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle IOException in Version commandMatthias Sohn2019-01-211-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: I37e6e3aaba411858042afac02098ce9eaa06f258 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Fix missing braces in UploadPack.run()Matthias Sohn2019-01-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I923af9b4ce62d5098828f4322a2a508bf3927bbd Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle IOException in UploadPack commandMatthias Sohn2019-01-211-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: Ife1d8e88387a32de63b0ef31f45499babdbdde3c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle exceptions in Tag commandMatthias Sohn2019-01-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: I16b528fad74d0c5346d054b3c29070331d60db7f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Fix missing braces in Status.run()Matthias Sohn2019-01-211-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie30df8ed3d9a1e676f130214a173b622eaf67c6f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle exceptions in Status commandMatthias Sohn2019-01-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: I662a343fbb46c35090bd6f840e5a35a88036a65a Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Fix missing braces in ShowRef.run()Matthias Sohn2019-01-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I92bc2008c72bd4495dc3df47a9dd7eb242aab30f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle IOException in ShowRef commandMatthias Sohn2019-01-211-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: If18a5d8013f1cb393af3a5e5a1ec9613ac2151bd Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Fix missing braces in Show.run()Matthias Sohn2019-01-211-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I50097649f1355856e342035d54c55e65270ef507 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle exceptions in Show commandMatthias Sohn2019-01-211-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: I1c6cc5ecdc44b81e5f3f9b7dc64c3653de5475ba Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Fix missing braces in Rm commandMatthias Sohn2019-01-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5ad2f02516917bbd02aa0eb4fb6b05d4b06dc670 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle GitAPIException in Rm commandMatthias Sohn2019-01-211-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: I55c15a35369e790a3ca946d6db0097a57ac6fae5 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle exceptions in RevParse commandMatthias Sohn2019-01-211-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: Iae510d8c6af9acd587822a28ad48eab0b2a96ccd Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Externalize error messageMatthias Sohn2019-01-213-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id9e33104c9681dc9a57674c1648c994a503fa6b8 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Fix missing braces in Reset.run()Matthias Sohn2019-01-211-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1e854ab81063601eb4ff159aabc559cb65ce6ece Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle GitAPIException in Reset commandMatthias Sohn2019-01-211-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: I70dce366081cd1fc4539cf195d6310fef1080eb3 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle GitAPIException in Repo commandMatthias Sohn2019-01-211-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: I1a636478bfae8cc0635a3e57be252126e69c19cd Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle exceptions in Remote commandMatthias Sohn2019-01-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: Ie1985c2570213217c2ea0f376ff99d19bfed4e0c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle exceptions in Reflog commandMatthias Sohn2019-01-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: Id25eb523c12c07cbd14e31edfb8b5d7ec9b3ccf3 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | pgm: Handle IOException in ReceivePack commandMatthias Sohn2019-01-211-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids we show a stacktrace on the console by default when this type of exception is thrown during the run method is executed. Change-Id: I9cecd236a8df8a2c2972d5da6031a121f25b1daa Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | | | | | | | | | | SmartClientSmartServerTest: Open Repository in try-with-resourceDavid Pursehouse2019-01-211-97/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since 52923e9 ("LocalDiskRepositoryTestCase#createRepository: Default auto-close to false", Jan 20, 2019) the createBareRepository method creates repositories that do not get automatically closed in #tearDown. Convert invocations of createBareRepository to use try-with-resource. Change-Id: I320030c5d4438713971bee33316bff408bac47fc Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* | | | | | | | | | | | SmartClientSmartServerTest: Open ObjectInserter.Formatter in try-with-resourceDavid Pursehouse2019-01-211-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7005f5821394a3e237cf877cf38557b6a62cacb3 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>