| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |_|_|_|_|/
| |/| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The current implementation throws an exception when a submodule is
updated for which the 'gitdir' still exists but the 'worktree' is
missing. The current implementation tries to clone the submodule but
fails as the 'gitdir' is not empty.
The commit adds:
- a check if the 'gitdir' is empty
- if the 'gitdir' is not empty:
- create a new '.git' file linking to the existing 'gitdir'
- fetch the submodule
- checkout the submodule unconditionally (ignore any configured
update mode)
- if the submodule is cloned checkout the submodule unconditionally
(ignore any configured update mode)
This change mimics the behavior of cgit.
Bug: jgit-79
Change-Id: Iffc8659d2a04d866a43815c78c7760c0f3d82640
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Not all SSH key types start with "ssh-" (for instance ECDSA keys).
Don't test for this; instead test that the string we want to use
as base64-encoded key starts with "AAAA".
Change-Id: Ia0e24d63c69c98813ac7419f4a688f3d15139a10
|
| |\ \ \ \ \ \ |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Utility to create fake indexes. This simplify unit testing code that
requires an index.
Change-Id: I30f60cbd37ad5b48f4d919be265bfbf9a7fe57c4
|
| |\ \ \ \ \ \ \
| | |/ / / / / /
| |/| | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
* changes:
RefDatabase#getReflogReader(String): use #exactRef to resolve refName
Deprecate Repository#getReflogReader methods
Add RefDatabase#getReflogReader methods
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Don't accept short ref names anymore which is more predictable.
Change-Id: I5e7323c610c68b25facd6f2286456716d8e6cf1a
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
instead use Repository.getRefDatabase().getReflogReader().
Change-Id: I5e66a512c12e11d0ec3275fffde4adb8483430f2
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
to fix broken abstraction in FileRepository#getReflogReader(String).
How to get a ReflogReader depends on the chosen RefDatabase
implementation, hence the #getReflogReader methods should be there.
This also fixes a bug in FileRepository#getReflogReader(Ref) which
didn't work if FileReftableDatabase was used as RefDatabase since it
always returned the implementation only suitable for RefDirectory.
Change-Id: I0859990f9390ab96596b6c344966c687dfbbf167
|
| |\ \ \ \ \ \ \
| | |/ / / / / /
| |/| | | | | | |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
By instrumenting "LooseObjects#open" with print statements (since
debugging mocks doesn't work in Eclipse) I found that the constructor
"LooseObjects(Config, File)" which defaults "core.trustFolderStat" to
"true" isn't used when mocking LooseObjects. Hence
"core.trustFolderStat" is in fact "false" in the mocked LooseObjects
object.
Make this explicit by configuring "trustFolderStat=false" in a real
"LooseObjects" object and only mock its method "#getObjectLoader" using
a spy.
Change-Id: I2f870637db818c2e89c1c2a174bf78bd572a367a
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Change-Id: I513ed40eded5abe8511494875eeb6849592c643e
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I3cb485de38d338735ee7856ab18789dc9f9dfb60
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I4211fe2529638509865624fe69332b3b5b67bfe1
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I4bd82f562c8b7d4e9b934bc0a0519f4060c81d12
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: Ibec1f2821d82855337e166bc65afd7c5b98dc5f2
|
| |\ \ \ \ \ \ |
|
| | |/ / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The expected value is the first argument and the actual value the second
argument.
Change-Id: I8416cfeaa7a14d0b863658bf133473535647fc57
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
See https://git-scm.com/docs/repository-version#_version_1
Change-Id: Ic71e55f5dfd4dacedabe54a5881a56b72659f3bc
Signed-off-by: youtirsin <youtirsin@qq.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I8389402492f0729837f0aa2d41f1f69eb1b27334
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Ic0e65e2ccd5dbd7298d8fb425a67368371462be6
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I90999c8d67adce2d510c2dc2d428090a1890c6ff
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I1b3ac396297968174f46afda70e7292eed19210d
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I70e9980bd7337f3f3e7c709fe16b91461cbbad7b
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Ic40473aecb23e22c755a9e041592886fb3c448f9
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I6cf6ed64b4029001cb5908338b60385804eb9997
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I600538d0ea7ec4377af331341b8e4e2d51a5a51d
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I63c37a0fb0f6070aba3947903e79d8ebc014f52d
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I8e1b82c76403493faa00ec1a30a6d57a695d8573
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Ib5e367c88662defc0471a0487a576bb4b750b778
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I3004d5b586b674e81cc76d0b01cef424d0b1f7f8
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I9a3f558ff578266a34f45ebf3026c7a093dd6f3c
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Id0e61babb768d29d6317cc216eeaa5054e5fc869
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Iea1147f89fb14821b7d052d4e9c3397033dfade4
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I00c63c928ad64a447ad101e01508d917de26bd71
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Ideb32d24c78aa8f42546d9098991257ab6f205c4
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Ibf38c44d6893a1ce3baf83f8f0dbc06d1c8405ad
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Ie0b39e0c41bf2827af5f6282ea33ebd21afd47f6
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I61259fc76454b473aee92dc96180219e5f4a4084
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I4e61af621b63b0715596b5a8c7d8eb985d64ce26
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Ide7f67345fa9a63da16562eed76ca5b2a88b8f8a
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We are moving from java.util.Date to java.time APIs.
Change-Id: I6f99d52c2e5bd4734ac1fe5378eed29b398e8c25
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We are moving away from java.util.Date to java.time APIs.
Change-Id: Ifad3fce57f4a742289a5a687a7cf8776fff6bf1c
|
| |\ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
* changes:
PackWriterBitmapPreparer: Use SystemReader.now() instead of deprecated method
TestRepository: Stop using deprecated methods in SystemReader
DfsGarbageCollector: Use SystemReader.now() instead of getCurrentTime()
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
SystemReader.getCurrentTime() is deprecated.
Change-Id: If4d683633a77eec9b4cc32daed00254fbaa3114b
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I1d1f174f739137c24fb586cb2f6d054d4785d716
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
getCurrentTime() is deprecated. Use now() that returns an Instant.
Change-Id: I107af03342e6815d97181d6dccd94e2fae2d3b21
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
We are moving away from the old java.util.Date API to the
java.time API.
Change-Id: I6d2ff9d0dfb81ca8385f8776e3fa73e090247b79
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
We are moving away from the old java.util.Date API to the
java.time API.
Change-Id: Ie645d7bf4e958f6602ec106e8c2296d675f62904
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
We are moving away from the old java.util.Date API to the
java.time API.
Change-Id: Iffcb6ff709cbc101e0700520b8312328ff70b2eb
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We are moving away from the old java.util.Date API to the
java.time API.
Add GitTimeParser#parseInstant to support this.
Change-Id: I3baeafeda5b65421dc94c1045b0ba576d4f79662
|