jgit/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport
Thomas Wolf 8a2c769417 [push] support the "matching" RefSpecs ":" and "+:"
The implementation of push.default=matching was not correct.
It used the RefSpec "refs/heads/*:refs/heads/*", which would push
_all_ local branches. But "matching" must push only those local
branches for which a remote branch with the same name already exists
at the remote.

This RefSpec can be expanded only once the advertisement from the
remote has been received.

Enhance RefSpec so that ":" and "+:" can be represented. Introduce a
special RemoteRefUpdate for such a RefSpec; it must carry through the
fetch RefSpecs to be able to fill in the remote tracking updates as
needed. Implement the expansion in PushProcess.

Bug: 353405
Change-Id: I54a4bfbb0a6a7d77b9128bf4a9c951d6586c3df4
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2022-03-06 17:30:01 +01:00
..
http Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
AtomicPushTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
BasePackConnectionTest.java Stop initCause throwing in readAdvertisedRefs 2022-02-08 09:52:03 +00:00
BasePackPushConnectionTest.java Stop initCause throwing in readAdvertisedRefs 2022-02-08 09:52:03 +00:00
BundleWriterTest.java [test] Fix closing of test repositories 2022-01-30 17:16:02 -05:00
DaemonTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
HMACSHA1NonceGeneratorTest.java Add tests for HMACSHA1NonceGenerator 2015-06-15 10:32:09 -04:00
HttpAuthTest.java Enable and fix "Statement unnecessarily nested within else clause" warnings 2019-10-17 10:20:14 +09:00
HttpConfigTest.java Override config http.userAgent from environment GIT_HTTP_USER_AGENT 2020-10-06 19:03:36 -04:00
HttpConfigUriPathTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
NetRCTest.java Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
ObjectIdMatcher.java Update orbit to I20210711110031 2021-07-16 23:47:29 +02:00
PackParserTest.java [test] Fix closing of test repositories 2022-01-30 17:16:02 -05:00
PacketLineInTest.java Client-side protocol V2 support for fetching 2021-01-01 21:22:30 +01:00
PacketLineOutTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
PostUploadHookChainTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
PreUploadHookChainTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
ProtocolV0ParserTest.java Do not send empty blob in response to blob:none filter 2020-07-29 21:04:20 -07:00
ProtocolV2HookChainTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
ProtocolV2ParserTest.java Do not send empty blob in response to blob:none filter 2020-07-29 21:04:20 -07:00
PushCertificateIdentTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
PushCertificateParserTest.java transport: Merge BaseReceivePack into ReceivePack 2019-11-13 15:57:04 -08:00
PushCertificateStoreTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
PushConfigTest.java Support for git config push.default 2022-02-09 18:33:31 +01:00
PushConnectionTest.java Improve error message when receive.maxCommandBytes is exceeded 2020-06-29 08:57:42 +09:00
PushOptionsTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
PushProcessTest.java [push] Call the pre-push hook later in the push process 2022-03-06 17:30:01 +01:00
ReachableCommitRequestValidatorTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
ReachableCommitTipRequestValidatorTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
ReceivePackAdvertiseRefsHookTest.java [test] Fix closing of test repositories 2022-01-30 17:16:02 -05:00
ReceivePackTest.java transport: Merge BaseReceivePack into ReceivePack 2019-11-13 15:57:04 -08:00
RefAdvertiserTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RefSpecTest.java [push] support the "matching" RefSpecs ":" and "+:" 2022-03-06 17:30:01 +01:00
RemoteConfigTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
RequestValidatorTestCase.java Replace ExpectedException which was deprecated in junit 4.13 2020-01-24 15:46:08 +09:00
SideBandOutputStreamTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
SpiTransport.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
TestProtocolTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
TipRequestValidatorTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
TransferConfigTest.java Client-side protocol V2 support for fetching 2021-01-01 21:22:30 +01:00
TransportHttpTest.java Support "http.userAgent" and "http.extraHeader" from the git config 2020-09-26 23:42:38 +02:00
TransportTest.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
URIishTest.java Fix human name for local .bundle files 2020-04-21 07:46:50 +02:00
UploadPackLsRefsFileRepositoryTest.java Fix missing peel-part in lsRefsV2 for loose annotated tags 2021-10-15 22:29:28 +02:00
UploadPackReachabilityTest.java Replace ExpectedException which was deprecated in junit 4.13 2020-01-24 15:46:08 +09:00
UploadPackRefSortingForReachabilityTest.java Replace deprecated junit assertion methods with hamcrest 2020-01-22 18:16:17 +01:00
UploadPackTest.java Merge branch 'stable-5.13' into stable-6.0 2022-01-18 18:07:59 +01:00
WalkEncryptionTest.java Use slf4j-simple instead of log4j for logging 2021-12-31 01:09:52 +01:00