aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use absolute paths for file:// URIs in testsShawn Pearce2013-11-019-31/+44
| | | | | | | | When run under Buck the repository paths may be relative. Request an absolute path to construct the URI, as relative paths are not supported in file:// style URIs. Change-Id: I85470d1db2f4e80cba30f1559c0d99bdfa8ac410
* Use getPath() in FileResolverTestShawn Pearce2013-11-011-1/+1
| | | | | | | Necessary to get tests to pass when running under Buck. Has no impact on Maven based invocation of tests. Change-Id: I437114863df0bac346c94ef13796def47333d916
* Extract protocol constants to a common classShawn Pearce2013-11-017-50/+202
| | | | | | This avoids the server from referencing the client code directly. Change-Id: Ie6ade781b5a689646ad8b0b2988ef2b544412195
* Move repeat() to utility class for testsShawn Pearce2013-11-013-12/+59
| | | | | | | | Avoid depending on AutoCRLFOutputStreamTest from within another test such as AutoCRLFInputStreamTest. Breaking the dependency up allows the test classes to be built and executed in parallel. Change-Id: Ic9ab2b6ec74ac87ff4adda8a802ae343dd2a6235
* Remove hardcoded target/trash from test casesShawn Pearce2013-11-015-10/+27
| | | | | | | | | | | Buck does not create a target directory for the build output, this is Maven specific and the project unit tests should not rely on it. Instead follow the pattern used by org.eclipse.jgit.test which is to create a temporary directory in the system temporary folder, and configure the Maven surefire plugin to use the target directory. Change-Id: Iebe5093332343a90f51080614e083aac0d29c26d
* Remove dependency on StatusCommandTestShawn Pearce2013-11-013-24/+71
| | | | | | | Move the set constructor function to a Sets utility class, allowing the tests to compile in parallel. Change-Id: Id6fac2533fab8d423f949c892f199af2491a450b
* Remove dependency on DiffFormatterReflowTestShawn Pearce2013-11-011-6/+7
| | | | | | | Reference the resource from the root of the CLASSPATH, allowing the test classes to be compiled in parallel with no dependencies. Change-Id: Ia6becf30ccfe93b8585b82293d9a4863b0cf837e
* Remove unnecessary import of BaseConnection in MessageWriterShawn Pearce2013-11-011-2/+1
| | | | Change-Id: I2af8b0ac0f9fbf2814eca23990ae527baf040539
* Support extension of TransportHttpMichael Nelson2013-10-261-1/+10
| | | | | | | | | | This allows subclasses to configure the HTTP connection (for example, to add headers to the request). Bug: 400724 Change-Id: I6f9d699e158a7b9d813c8fa8d273992a28994e41 Signed-off-by: Michael Nelson <michael.nelson@tasktop.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
* CLI fetch command should support --tagsKaloyan Raev2013-10-264-0/+127
| | | | | | | Bug: 419638 Change-Id: I1dc99fd38e678e091a1d141d741328f0dec1756a Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
* Add missing JUnit dependency in MANFEST.MFRĂ¼diger Herrmann2013-10-251-1/+2
| | | | | | Bug: 419998 Change-Id: Ie49ad97cb86d51274251296cee559141bfdb9fc9 Signed-off-by: RĂ¼diger Herrmann <ruediger.herrmann@gmx.de> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Add / fix @since tagsMatthias Sohn2013-10-243-2/+4
| | | | Change-Id: I1e5bea968b3c79df4f600b75fde5b547ebadde36 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Make sure SystemReader is reset after test is runRobin Stocker2013-10-226-1/+29
| | | | | | | | Otherwise the MockSystemReader from the test setup is active for other tests. Change-Id: I7caf693bd692d06936e29efd4dc4aabb48c1c39b Signed-off-by: Robin Stocker <robin@nibor.org>
* Merge "Add describe command to JGit command line interface"Robin Rosenberg2013-10-205-0/+178
|\
| * Add describe command to JGit command line interfaceMatthias Sohn2013-10-115-0/+178
| | | | | | | | Change-Id: I1560fd2be417361b3d2df15a27618053031bd873 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | Merge "Fix failed tests when the tmp directory is a symlink"Matthias Sohn2013-10-193-16/+24
|\ \
| * | Fix failed tests when the tmp directory is a symlinkRobin Rosenberg2013-10-203-16/+24
| | | | | | | | | | | | | | | | | | On Mac OS X /tmp is by default a symbolic link. Change-Id: I0913ee5ee8db5c5918a9e41abbbfe125b6c70783 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | | Merge changes I5a5a2387,I04805ce2Robin Rosenberg2013-10-194-17/+25
|\ \ \ | |/ / |/| / | |/ | | | | * changes: Describe HEAD if no explicit target was set Allow to set target of DescribeCommand
| * Describe HEAD if no explicit target was setMatthias Sohn2013-10-114-15/+22
| | | | | | | | | | Change-Id: I5a5a238709df813ec07278bb3b4f9ea5c85c0883 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * Allow to set target of DescribeCommandMatthias Sohn2013-10-111-2/+3
| | | | | | | | Change-Id: I04805ce20cc203f5e491406c39b71e7017553b37 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | Scripts to publish jgit artifacts on Maven centralMatthias Sohn2013-10-172-0/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - you need an account on oss.sonatype.org and permissions for group id org.eclipse.jgit, see [1] - install ruby [2] if necessary - run download.rb to download the Maven artifacts from repo.eclipse.org - then run deploy.rb to stage the artifacts on oss.sonatype.org - follow [3] to close the staging repository which triggers some sanity checks on Nexus - ask community to test artifacts from staging repository - if tests are ok release the staging repository as described in [4] [1] https://issues.sonatype.org/browse/OSSRH-2758 [2] https://www.ruby-lang.org/en/downloads/ [3] https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-7b.StageExistingArtifacts [4] https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-8a.ReleaseIt Change-Id: I830f2392b9234e585b01dbb4a5a369edd88796a2 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | CLI version command falls back to Bundle-VersionKaloyan Raev2013-10-121-3/+48
|/ | | | | | | | | | | If the version command cannot read the Implementation-Version of the containing JAR fall back to read the Bundle-Version header in MANIFEST.MF. This makes the command working also from the org.eclipse.jgit.pgm bundle and during development in a host IDE. Bug: 419087 Change-Id: I4269d1cbd9bf9fd8be6fb4463aecc1c434aa387b Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* List all supported formats in archive command's helpMatthias Sohn2013-10-101-1/+1
| | | | Change-Id: I4bd271cb348914642069239853488f4960444746 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Merge "Add support for --version in JGit CLI"Robin Stocker2013-10-102-1/+10
|\
| * Add support for --version in JGit CLIKaloyan Raev2013-10-092-1/+10
| | | | | | | | | | Bug: 419000 Change-Id: I43f5267182ea69d1f9abbff33136e0491c629071 Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
* | Add resources/ as source folder in build.propertiesKaloyan Raev2013-10-101-1/+2
|/ | | | | | | | | This allows correct export of org.eclipse.jgit.pgm via the PDE Export wizard. Bug: 419089 Change-Id: I98765208edd7df59e262001dd01ed2b43e4475a9 Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
* Fix ServiceMayNotContinueException constructors for Java 1.5Colby Ranger2013-10-081-2/+3
| | | | | | | | | | IOException did not add a (String, Throwable) constructor until 1.5. Instead use the String super constructor and initCause to initialize the exception. Fixes bug 418889 Change-Id: Ide735ecfc7d04884981b79b57a4275863ce17006
* Add constructors that take Throwable to ServiceMayNotContinueException.Colby Ranger2013-10-071-0/+23
| | | | | | | | | ServiceMayNotContinueException usually wraps an underlying exception. Add convenience constructors that take Throwable. In the case a string is not provided, the message defaults to "internal server error", since it may be reported to the client. Change-Id: I15dc20306826c352f69e88afb7ed6927c12b6c1f
* Propagate IOException where possible when getting refs.Colby Ranger2013-10-0716-22/+72
| | | | | | | | | | Currently, Repository.getAllRefs() and Repository.getTags() silently ignores an IOException and instead returns an empty map. Repository is a public API and as such cannot be changed until the next major revision change. Where possible, update the internal jgit APIs to use the RefDatabase directly, since it propagates the error. Change-Id: I4e4537d8bd0fa772f388262684c5c4ca1929dc4c
* Prepare 3.2.0-SNAPSHOT buildsMatthias Sohn2013-10-0351-244/+244
| | | | | Change-Id: Iac6cf7a5bb6146ee3fe38abe8020fc3fc4217584 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Merge branch 'stable-3.1'Matthias Sohn2013-10-0355-260/+311
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * stable-3.1: Prepare post 3.1.0 builds JGit v3.1.0.201310021548-r Fix order of commits in rebase todo file header Prepare post 3.1.0 RC1 builds JGit v3.1.0.201309270735-rc1 Attempt to fix graph layout when new heads are introduced Prepare re-signing pgm's ueberjar to avoid SecurityException Use full branch name when getting ref in BranchTrackingStatus Change-Id: Ida30175d0c058048cbe4b563aae7f85cd008db29 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * Prepare post 3.1.0 buildsstable-3.1Matthias Sohn2013-10-0351-245/+245
| | | | | | | | | | Change-Id: I306a3d40c6ddb88a16d17f09a60e3d19b0716962 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * JGit v3.1.0.201310021548-rv3.1.0.201310021548-rMatthias Sohn2013-10-0251-55/+55
| | | | | | | | | | Change-Id: I2170b13047d5eab7565f47f9feb1680e03b1ba09 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * Fix order of commits in rebase todo file headerStefan Lay2013-09-291-2/+2
| | | | | | | | Change-Id: I0e41d89bbd4fc01ad3b3d05a45ee60af853bfae7 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * Prepare post 3.1.0 RC1 buildsMatthias Sohn2013-09-2751-51/+51
| | | | | | | | | | Change-Id: I060f2082ccd0c91905b6b29a49cc633a0b51a1f2 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * JGit v3.1.0.201309270735-rc1v3.1.0.201309270735-rc1Matthias Sohn2013-09-2751-51/+51
| | | | | | | | | | Change-Id: I48202dd461110da25f9bc159c938311fff0669e0 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * Attempt to fix graph layout when new heads are introducedRobin Rosenberg2013-09-262-11/+46
| | | | | | | | | | | | | | | | | | | | | | Sometime the new commit is no allocated onto a new lane leading to the commit being drawn on the wrong branch and something that looks like a merge. The drawback is that this also changes existing valid graphs. Bug: 368927 Change-Id: Ic8a8247c8a53be802c1be83850ed766b902ca646
| * Prepare re-signing pgm's ueberjar to avoid SecurityExceptionMatthias Sohn2013-09-241-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we now sign all build artifacts immediately after creating them we need to re-sign the ueberjar created for jgit command line tool because the signatures of the individual jars are invalidated when repacking them into the ueberjar. Hence we need to exclude the signatures of the individual jars when using maven-shade-plugin to create the ueberjar. Also install the shaded plugin into maven repository and exclude osgi framework sources which were included unintentionally. See http://dev.eclipse.org/mhonarc/lists/jgit-dev/msg02277.html Change-Id: Ia302e68a4b2a9399cb18025274574e31d3d3e407 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * Use full branch name when getting ref in BranchTrackingStatusRobin Stocker2013-09-201-2/+4
| | | | | | | | | | | | | | | | | | | | In case there is both a tag and branch called "foo", the tag is returned if calling getRef with the short name. By using refs/heads/foo, the branch is returned. Bug: 417158 Change-Id: I86b4f83955586bb24774fd621f5012499cf67909 Signed-off-by: Robin Stocker <robin@nibor.org> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | Merge "Added the git-describe implementation"Matthias Sohn2013-10-025-0/+535
|\ \
| * | Added the git-describe implementationKohsuke Kawaguchi2013-09-275-0/+535
| |/ | | | | | | | | | | | | | | | | | | CQ: 7609 Bug: 339246 Change-Id: I689bc0578ce3a430b9800ad84122e221c69829f4 Signed-off-by: Kohsuke Kawaguchi <kk@kohsuke.org> Also-By: Robin Stocker<robin@nibor.org> Also-By: Matthias Sohn <matthias.sohn@sap.com> Also-By: Christian Halstrick <christian.halstrick@sap.com>
* / Do not close ArchiveOutputStream on errorJonathan Nieder2013-09-231-2/+2
|/ | | | | | | | | | | | | | | | | | | | If we encounter an I/O error while writing an archive (for example due to the reader of an HTTP stream closing the connection), the result is an archive with unclosed entries, causing TarArchiveOutputStream.finish() to throw IOException("This archives contains unclosed entries"), hiding the IOException that caused the early termination. The unclosed entries are fine: the same exception that occured in the first place will probably prevent closing the entries before finishing this partial archive that should be discarded anyway. It would be nicer to call TarArchiveOutputStream.finish and leave the underlying OutputStream unclosed --- all callers close it already --- but that would be a more invasive change so we hold off for now. Change-Id: I328ced19aa8a1888e5353cdbb6106a85fd72d5d7 Signed-off-by: Jonathan Nieder <jrn@google.com>
* Ignore bitmap indexes that do not match the pack checksumColby Ranger2013-09-191-8/+8
| | | | | | | | | | If `git gc` creates a new pack with the same file name, the pack checksum may not match that in the .bitmap. Fix the PackFile implementaion to silently ignore invalid bitmap indexes. Fixes Issue https://code.google.com/p/gerrit/issues/detail?id=2131 Change-Id: I378673c00de32385ba90f4b639cb812f9574a216
* Merge branch 'stable-3.0'Matthias Sohn2013-09-173-2/+12
|\ | | | | | | | | | | | | | | * stable-3.0: JGit v3.0.3.201309161630-r Add org.eclipse.jgit.java7.source to jgit source feature Change-Id: I738afcfbc78ea1ac56d0d0ab7d4f7717167dd8dd Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * JGit v3.0.3.201309161630-rv3.0.3.201309161630-rstable-3.0Matthias Sohn2013-09-1648-51/+51
| | | | | | | | | | Change-Id: I73ff609ba681500394b5919f62cff9ec24a52756 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * Add org.eclipse.jgit.java7.source to jgit source featureMatthias Sohn2013-09-162-0/+12
| | | | | | | | Change-Id: Ifd9153f77c246a67d5d15734667dc2360718a390 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | Remove unneeded packs when compacting with no new objectsColby Ranger2013-09-161-1/+7
| | | | | | | | | | | | | | Previously, the DfsPackCompactor exited without pruning the existing packs, when no new packs were created. Change-Id: I5e3b6f8c789706c7a982e6ae93cf7c3d4346797c
* | ResetCommand: Allow reset on unborn branch when ref not specifiedRobin Stocker2013-09-133-58/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | In C Git 1.8.2, "git reset" now also works on an unborn branch (no HEAD yet) if no explicit ref was specified. In that case, it is treated as a reset to an empty tree. This can be useful for callers because "unborn branch" no longer has to be special-cased to "git rm --cached". Bug: 414870 Change-Id: Ied750116f767518ae4d48823cf00752b049a8477 Signed-off-by: Robin Stocker <robin@nibor.org> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | Merge branch 'stable-3.0'Matthias Sohn2013-09-116-3/+25
|\| | | | | | | | | | | | | | | | | * stable-3.0: Prepare post 3.0.2 builds JGit v3.0.2.201311090911-r Change-Id: I99a7d1072285646f7fcd4169225c1fd249ad5e37 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| * Prepare post 3.0.2 buildsMatthias Sohn2013-09-1148-230/+230
| | | | | | | | | | Change-Id: Ie1bd951a2cb35d069c94dab4a62507115913764f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>