Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ls-remote doesn't contain HEAD #111

Open
xenoterracide opened this issue Nov 14, 2024 · 3 comments
Open

ls-remote doesn't contain HEAD #111

xenoterracide opened this issue Nov 14, 2024 · 3 comments

Comments

@xenoterracide
Copy link

xenoterracide commented Nov 14, 2024

Version

org.eclipse.jgit:org.eclipse.jgit:7.0.0.202409031743-r

Operating System

Linux/Unix

Bug description

given

git.lsRemote().setHeads(true).setTags(true).setRemote("origin").callAsMap()

Actual behavior

the HEAD reference is missing

Expected behavior

if I run the real git ls-remote origin I get the below

288b40b3546673c7436014e3ce85afe18ee41bcc	HEAD
48a09407ab3489acfe73f8a6576164a9293b68d2	refs/heads/chore/build-logic
7a93373f9e8f977b17efb84110398fb70936bf82	refs/heads/chore/sync-config
31673b1a39ec6adc36b8377277aa7af07f96045a	refs/heads/ci/generate-and-upload-dep-submit
3a0c102452c0e80abf85da0e1bcfeeed95b939a2	refs/heads/external/bug/ep
0bbe15192d55c81d0fa4593794872b5b74ccfcf3	refs/heads/external/bug/jgit-24
f28c2d65e2ef552eeb508c845ceffe1aa7075711	refs/heads/feat/simplify-to-provider
288b40b3546673c7436014e3ce85afe18ee41bcc	refs/heads/main
83dd4f2753542316a142ac7c08edd6f5a027bd13	refs/heads/renovate/com.gradle.develocity-3.x
6c4a9651818e451604e4525cbb7b4354e231c38b	refs/heads/renovate/gradle-8.x
e8673335d1deca1e6a800f30c586af8da2d9ffb7	refs/heads/test/stringy-version-comparision
01dd268f58e00807f84a76c9c9d77d3315d1922e	refs/pull/1/head
3d344dd4fa5fd12881dd3a0b4304f2015a4503e0	refs/pull/10/head
a429119a039aa608bdc723fb1948d661f2a702b7	refs/pull/100/head
cb7d7988cf8f8768b569a1df6708207248df56d2	refs/pull/101/head
3167f3c14198d425431270262ba10e469db5ee7c	refs/pull/102/head
cf961ea38bad3dc3569b7ddf44dce70bb92e61e3	refs/pull/103/head
6299bead00d929722dcf0cc0a98500af4473bfca	refs/pull/104/head
f219d0e67dfccd7f2aa72f833cd980858116b9a3	refs/pull/105/head
0fe4908fbe6987d044e350bf115019f999b08df2	refs/pull/106/head
6312212a5884961807d75c198beef603862d8dc6	refs/pull/107/head
0ea944a57f26386f4060d174960bdf4926eb6727	refs/pull/108/head
c2f5ace0c4bcde8539b8dec89430cf8ec7a81a1f	refs/pull/109/head
ab65659bb3ed038bd1c66fce2ffbe0f3b9c7a7c9	refs/pull/11/head
9349fb45bec569f5626ffcefe9841b0e9899c5fb	refs/pull/110/head
bea043d26c5c731b2161fc0f79b5c366961b9853	refs/pull/111/head
d745c4bd602d3b4fc72c74a92dbb3db94bb1750f	refs/pull/112/head
8d21949a216226c127f60cff99a009cb13d62948	refs/pull/113/head
c55a2ac24000d9ed46d1b830bd3c76f8a30e2591	refs/pull/114/head
19d45bb28df37f8f423820cf5dade2371b4dfe77	refs/pull/115/head
691e8c5c3816bbd99c4e11b21278227325af59ef	refs/pull/116/head
0b631f042df949f20020b84acb2440791ad23a94	refs/pull/117/head
2d5f347e90db88ec2c43894113cc9a860aca4286	refs/pull/118/head
eaa7a4f168f1c854c878ea56e3253aa54a8e8d9a	refs/pull/119/head
9f2d9126e7c5d427243249c57c5846a7beeaf0e4	refs/pull/12/head
60e7da30646a5199ff2cbe040652dfb0257fe13d	refs/pull/120/head
898d7e46dcf79a8a5b1f49aeebb8d6779a8af2e1	refs/pull/121/head
0a9fed639106274e8bb4eb37b964cb592c12eb43	refs/pull/122/head
5d7b12014d568ca5b6dd22afecfff3569c233e37	refs/pull/123/head
4d016e9ca39404aed0265308f32f0b656cfeeff0	refs/pull/124/head
c59a8fe7c81d25ca80e78492a81f43993f624917	refs/pull/125/head
e52b906ff4829649a90964d69e013c4aa0ab3ec4	refs/pull/126/head
15804a626352cb27d81755121ddc6bdac6be326e	refs/pull/127/head
2886305e20c1f940e2b06739628c9e19bcc6515d	refs/pull/128/head
25428f8d527293ce823ff48cb7dc44ad08e3fcba	refs/pull/129/head
f6035f366d4fdc591ac02478f5164ff7573baff4	refs/pull/13/head
9e5af7c7c49f67e8e1411ac6e8e3f3d486698c39	refs/pull/130/head
6994d4578cafc047e2b8c4c77c9d7cbb449e5a9d	refs/pull/131/head
cc6826a0b446b855507cd4cce00ef6c1fcb93035	refs/pull/132/head
db55f20b3d1fc1893da1681ae661b02ce94d7ec9	refs/pull/133/head
57e6d07cb36b2bbcfc44342abd4cf29f1745d4f1	refs/pull/134/head
f453dc11af9d1a6a1480603c1570886a0693e747	refs/pull/135/head
3ddbd8485010a160adcf853d067b854a7062f108	refs/pull/136/head
d4d42c0745bfa22288726dca9f26e88c0993d524	refs/pull/137/head
e9afc07029aee7a3320d54a541827cff856a290d	refs/pull/138/head
458512a448fbaae0b25625b576a12a08fa871f80	refs/pull/14/head
68b59f1cde5434f2a1f1c6d8c0a619a2dbe197a9	refs/pull/141/head
9aee349113777f62a9a914805184e47645eee2fe	refs/pull/142/head
3b2147786d0fd41af9ae9cdf0e9b5de61e56454c	refs/pull/143/head
62542725aa7fa82c04e796628a2f6cbc4bb1b41a	refs/pull/144/head
4a53099ba0f33b3a1476a11f3916a5a418da1935	refs/pull/145/head
41f0a60398add2611a5fc358858b7533633a6d03	refs/pull/146/head
2d2b0355bb0eaecb9db8705e90c5f822a22e2a69	refs/pull/147/head
ef1c85c6a8e360543adacd24375a0528dddfbb0a	refs/pull/148/head
d60b271168d960ffc16aadf86fbc1c42d6606b55	refs/pull/149/head
808d26bcea79bc02b90c7cc61e42beacfcdbc8ac	refs/pull/15/head
15f4c31e88b395d18636d1008555f2f93e924541	refs/pull/150/head
3b5b30cb3926e01453b0f04add4bec14de830634	refs/pull/151/head
6353e4d5fbc21419845229132839c06ff4a9902b	refs/pull/152/head
6eb7a308b24d98459796fd829f54cbac2b6fea72	refs/pull/153/head
17ddff3070c7029ae38e3c0a7bbcca503f84571f	refs/pull/154/head
5a0c58894082f26009058cf565abb04066782f87	refs/pull/155/head
54640469efdb4901a70dc712a8268994e42841d9	refs/pull/156/head
93247949e0f30707e9870e03b5e00141a3b4c237	refs/pull/157/head
08417e53aecf9be7ac9ea3a184e02d30bcfe8390	refs/pull/158/head
d1d2f09077119b0125bc2a1fb14d67f38da6d06e	refs/pull/159/head
e3d5aaed67c22f3e9000680a11d43f490dcf24fc	refs/pull/16/head
843302facd53277cf4632c8138a8d54f5a0cf9b8	refs/pull/160/head
38557d0ef44c0ede74e6298b9b5ba4f8f5595d25	refs/pull/161/head
d31cdf87b3b3a4f88f167b0d0d575b35e6eb6579	refs/pull/162/head
35dfd004b2744916e6b3bc41b5f745940192c77c	refs/pull/163/head
8809db7dcad14552f21c29cebc2501db9122b55d	refs/pull/164/head
284facf290447d7630ae1dd96e0e266e566126e8	refs/pull/165/head
baa48d48e212fb076a812edbeb9c91ce9150216c	refs/pull/166/head
c1cb87c296f0440c5da42f760c4a6bcefad028d8	refs/pull/167/head
2f27a3c1a62e35721549f3b1b3f7acde47bb9643	refs/pull/168/head
048e4697e4668df940ad2d9283356fcb7f16ee1c	refs/pull/17/head
bd1daa3c746809441371934618626890375af047	refs/pull/170/head
ab63d9ecc448c5485f9539ba008b5c37417feb26	refs/pull/174/head
8807c2d4dd62c9a579d27921ffce03920dad3c96	refs/pull/175/head
7991fb49d2a11a75b86fd4cdfeaa13dbd88aa446	refs/pull/176/head
8e0061c7b64eedf2698df6478128bc7c16a65889	refs/pull/177/head
b2746b361b0bf6a5ac3f001a76318dcf5793a700	refs/pull/178/head
96e18ceabaf9ceae6777d0ed00d8b7f2a1dd838b	refs/pull/179/head
2487079988bbe804a5b0cf819c1878a76b640239	refs/pull/18/head
ae1ef043fe70134b35995abb13df261bd9514991	refs/pull/180/head
6c4a9651818e451604e4525cbb7b4354e231c38b	refs/pull/181/head
85b572098e89ed8d3ab6e0da0c212b80d6f2d5a4	refs/pull/181/merge
77495eedb472ef60221bde0d967216563523c97a	refs/pull/182/head
83dd4f2753542316a142ac7c08edd6f5a027bd13	refs/pull/183/head
ab919647e72911c80c82bb60e778948bdcb5b877	refs/pull/183/merge
2d0dc013f4f3e8d1481ef95ca4bcfea88c7b0c97	refs/pull/19/head
6331a5c07acf43cc16638c47e7d672a36d56d619	refs/pull/2/head
7c8b693c6eae697eab5dad256ad9b6bc17cc19b7	refs/pull/20/head
dd739328e4852d92b4fbafa58bfbf9c4f1b6140f	refs/pull/21/head
6bbdcfa751f0b78cbaccf56cd99c034ad854d626	refs/pull/22/head
0eec2a14f2b5113dd8d372037c932dbf0e393ffa	refs/pull/23/head
41412963984ac798840e1778e72cef3fd51835d3	refs/pull/24/head
470ff62ec9316917237c01d741f79381c6f94500	refs/pull/25/head
b781864b727a51ccb72f53173c5b422252b482b8	refs/pull/26/head
c514a00e3b17b242e79ff4dbe760b8c9dcab62f5	refs/pull/27/head
a338986f2a9068e7a4ae1af6afbb9f27009fd285	refs/pull/28/head
9bee5d37304139e1867a25d109cd1bdf8bc294ea	refs/pull/29/head
8d0dfaac121b89e5cf9073bfa099679efa9561c5	refs/pull/3/head
f2cf413235db0c59dc01bec6a1eee5282a3a315c	refs/pull/30/head
649d54ce7007553f0cd72ae3a6388a7b258b8c25	refs/pull/31/head
909f86c984ac7042dba49771442667a00120900e	refs/pull/32/head
32ee9ce1e37a8a39099906cac73f8584dfb40b54	refs/pull/33/head
97adac831ed3426bd20907fb4716afe344cc983c	refs/pull/34/head
39f7532e48a3e88dd6a0246ec99594e36f9d238d	refs/pull/35/head
0a80d80b1f23d6ec86cba76d1ab30550e7a61d9a	refs/pull/36/head
2376f9aafee0a5496a2b4cb980bb66f2fddf48c4	refs/pull/37/head
57991e7e581fbc2f504ef04ac3bf75534d016186	refs/pull/38/head
0ac388e7a45ea9f5ef45d92f53444d32209c65db	refs/pull/39/head
ddc7ae50a57b0055f1fa53e7c95a3c32bbaf1bf1	refs/pull/4/head
c4d6bd8af631c28f45123038ddd15c4627739c7a	refs/pull/40/head
aa36aa8b0299a0b47ae0cddf272a7fec8f4f1926	refs/pull/41/head
2dfe0147e759262754805e9e1129e095155ba0d1	refs/pull/42/head
d6835499bb844faebb53d464a5a9aa32d9e0afb8	refs/pull/43/head
7c5a3e37e111b14b4b28f22f91050a36e1492d6e	refs/pull/44/head
c39b419580e2101c22651af8aee95bb48b9bfa40	refs/pull/45/head
8240a3b757f49a0d3a3611cbb04cfe071f9cc937	refs/pull/46/head
0039a01b38e455ffa277d9590a90f3d2701f9a21	refs/pull/47/head
a8ef7142529e8ba9af637d3dccf5b4f3c1d32cb9	refs/pull/48/head
f1abfb865e13a68bb339bd827b8eaaaba600e355	refs/pull/49/head
106973cdd192693f2ddf1eed8e1af9158d78093a	refs/pull/5/head
763f66a0888a95a2073e27c349aa6cc510bae5d5	refs/pull/50/head
389c3c52f61d3be00d4f9a4ff1e2bb5ef44407c8	refs/pull/51/head
da97377ee0066c3b73926b9e28224c4fe73916b7	refs/pull/52/head
c9f45bde953676a00348823fa54e6058d21bcd66	refs/pull/53/head
c915395127b8a26da37df42a8fcad577568c9389	refs/pull/54/head
7bde5749410a781b3d3ebaa7d1955aa7112762dd	refs/pull/55/head
98436de8e1f1d867d40ac923e74f42be6a9e44f7	refs/pull/56/head
5a6ee55a63fa4d5ade8a01b2c7fdabf5b8463e06	refs/pull/57/head
b57cdb71e6404d30548962e29bf0d14a73158a4a	refs/pull/58/head
84f78d8ff0e31bb1412b20050e826dbcad3b0184	refs/pull/59/head
56391d69579d9502c18d86c4ecc8ba49853d9399	refs/pull/6/head
ce06a94e6956aec58038510fbf9d3d546812b4ad	refs/pull/60/head
192e358159cae7243934fb103772d05a3673f895	refs/pull/61/head
a599e50f271c6d3066412045ae57c983315a4236	refs/pull/62/head
8e77e451bf65648aa5b7e4df2ea1908245c4bc53	refs/pull/63/head
7fbeec6044e8eea26254b8883f85d21538a6e3b5	refs/pull/64/head
241a90502b051cada9bee958285905702f71526d	refs/pull/65/head
e31f09d48c4cce435f9415eb405acd81eaee5d31	refs/pull/66/head
604b74c4092833abe2ce347ee3504d23b6c90f5c	refs/pull/67/head
c2dbf7e3680ee39877d01a3ca549f23a8b9e1f71	refs/pull/68/head
7c8a1b8cdc023ba7ec9f4fa07e30796427133973	refs/pull/69/head
bb22385701caad3d488c1340c920bedb67924955	refs/pull/7/head
62ab52cab6551d8851d0f7506c112d4a94484928	refs/pull/70/head
d1e1b142b095780d90b1a5339007d4fd317bf8e9	refs/pull/71/head
4949dcf4dfa5f346aa9d744c35b0d55ca08e2c87	refs/pull/72/head
cf36bcc10769feffad223767a7c48f9b4941437c	refs/pull/73/head
986f3bfc94b6e5222369d80b07fe03d5bdec91fd	refs/pull/74/head
42358a4822cf97b2b26dced04628c302832af0c5	refs/pull/75/head
eb695d9c6d4f1437aef47a0658790e0fae96b1a2	refs/pull/76/head
982a3b0381f1943e599e2303144a04b1e1237232	refs/pull/77/head
55b880fef45ca73273f0006491bbf7748fc27aac	refs/pull/78/head
e6b65d1cf2d7f4c2e3a6cc8a010f255903208d5a	refs/pull/79/head
a44fb7ab83c6121d28f09ad2036d6c71e53d932e	refs/pull/8/head
9f2b7c89935fbefc70bf51a716d5314dc204e3d2	refs/pull/80/head
812d7efaade5bd1827668cb4a65012f139aeead8	refs/pull/81/head
d6857ad8ae5943631d5bc163c93a131927baf703	refs/pull/82/head
1fd965111fea900ae99abd334e9ca9a23d7b198b	refs/pull/83/head
7f4429eaedca79b270dfbcabcadd12a913a24f91	refs/pull/84/head
e0f0dca2ad235c80cbcf0c7e6044b574b976ae23	refs/pull/85/head
56d44404b81ac177b242f8bc5b76ddc0bc38f86d	refs/pull/86/head
334727bb87be8077513201917b6e514106f04bb9	refs/pull/87/head
48c7181e5197c370daa303728bb52a751152ae6e	refs/pull/88/head
81252b272a9aea221ce75cd8971c7ddf39459fbd	refs/pull/89/head
a0e8dc16a54819bc618e8ba492ff8b6e7450bea5	refs/pull/9/head
7b9f6717f07eecc238ff29adc4fbf83815ecc372	refs/pull/90/head
bf27e82893706b846182979836041a2b01702e9e	refs/pull/91/head
b534ad15baebb146cfc900ba9153bd01149beaa3	refs/pull/92/head
1b31f98a9342e535d0b01ad901ef73e3d89f3de7	refs/pull/93/head
30d85020101ad6c38e648aa039c4aa7ce1411eb4	refs/pull/94/head
a9de8a6ca151267214aacef27c84cdd1da75d896	refs/pull/95/head
801ff47657eaf8477aa231b105368a60fab6ab65	refs/pull/96/head
05064fab6693e6cfc07b09377687e0a2336458de	refs/pull/97/head
bab848f66f513fc43a8f6108049db424e02fdba4	refs/pull/98/head
8f472a8aadb948a78cf40075930e3af22ef09b27	refs/pull/99/head
b2e1fd0d8277bad288f7fed1b7f16dd0f3242202	refs/tags/v0.10.0
b746724eb7f2adbd254ebe66219d83fbad411326	refs/tags/v0.10.0^{}
a385a1c3612a61bb9987cfb9cc478da9853a0819	refs/tags/v0.11.0
2c3ef8cdb5068e47f818af0c2bb81c5a6a2b2056	refs/tags/v0.11.0^{}
2ed114811a879c13224109bbc71d722434a94d6c	refs/tags/v0.11.1
ac9af93d977500c7e08aa531b16827e2b6e238b7	refs/tags/v0.11.1^{}
bce046b7e02c4441cecd8595a1440bd9b9950152	refs/tags/v0.11.2
f9aceb26fbeb991794ca4deea20f05fb1950c344	refs/tags/v0.11.2^{}
732251a2c7d9d485fb4d96381b8599ac5f44425d	refs/tags/v0.11.3
64181cebba9566ad9649562ac45cffc243b12566	refs/tags/v0.11.3^{}
ddbcf4b82c29feea092eadfc24e25809e1cec2a1	refs/tags/v0.11.4
4a9f93c92eb5caaf9770370aa814c86e9cc54864	refs/tags/v0.11.4^{}
c9e4006b3f5d9000b9e6f9a4dc642499c3a1dd05	refs/tags/v0.8.0
28aed91489305f1326f19213f4c00e1a747a60cd	refs/tags/v0.8.0^{}
3f1d87cad55ff6d3784b73aa314af85cb6ea85a0	refs/tags/v0.8.1
5e29dc971c69ce8559580514b514d3c71cad577c	refs/tags/v0.8.1^{}
debb2014de56f972ec18c15caf624dec17df0e77	refs/tags/v0.8.2
446b9ff7a63559f0732e482c9554c7c6e1a8bb74	refs/tags/v0.8.2^{}
8f703482e7181eadf19d72f5763840ea0b999852	refs/tags/v0.8.3
1710cba5a4a1a09d6c20544e8532692cc125231e	refs/tags/v0.8.3^{}
a08df464cd3fe70a5edf42a874175ae7dfb4efd1	refs/tags/v0.8.4
097498718e97936ea0596082f3828dda8d0795e2	refs/tags/v0.8.4^{}
b7bfb90c070633e2ad11d0d6a90392839f576c9e	refs/tags/v0.9.0
a9d2fc1b53cc478b73f6a14d0586e3fd4098e939	refs/tags/v0.9.0^{}
4cf99857d114c5f19ba300733995f54499388e16	refs/tags/v0.9.1
eab109dbc4163b9f734da0d662eab0d5f0652363	refs/tags/v0.9.1^{}
14fc036f1941938f2e27b2fceb8298b924017da7	refs/tags/v0.9.2
ea748b4de02b91788436c33adb962b38a1a123b8	refs/tags/v0.9.2^{}
4a67312164fb3d4c0465c1fc2aaf776c9c421ed4	refs/tags/v0.9.3
761c420fa9812584e90750ca73197402603e76cc	refs/tags/v0.9.3^{}
fd43a6c79bbad727889cd26b852d5651c6f6b45b	refs/tags/v0.9.4
ed2869a4e5e23873113ddf15307146e1e0d077f7	refs/tags/v0.9.4^{}
ed031c4a4f128cd12faf7680b56052a26ae8e15e	refs/tags/v0.9.5
7ad7fad790dfabbe91a0be03a87c3f7e3d5cc8fd	refs/tags/v0.9.5^{}
01f2f6e9431c45b3180017ddfc12bbf5661cc184	refs/tags/v0.9.6
2fc0f8fb3ef640aaefc1d99f2b75ac45fd25286d	refs/tags/v0.9.6^{}
5a5f9e45ef868639db2cb2a64387464fda687a54	refs/tags/v0.9.7
a4b6ea57800458d44eb42622bb7ea55a07ae70a2	refs/tags/v0.9.7^{}

Relevant log output

No response

Other information

this is the repo that can be used for comparison, https://github.com/xenoterracide/gradle-semver.git

@msohn
Copy link
Member

msohn commented Nov 14, 2024

Running the equivalent git command for git.lsRemote().setHeads(true).setTags(true).setRemote("origin").callAsMap() yields:

$ git ls-remote --heads --tags https://github.com/xenoterracide/gradle-semver.git
48a09407ab3489acfe73f8a6576164a9293b68d2	refs/heads/chore/build-logic
7a93373f9e8f977b17efb84110398fb70936bf82	refs/heads/chore/sync-config
31673b1a39ec6adc36b8377277aa7af07f96045a	refs/heads/ci/generate-and-upload-dep-submit
3a0c102452c0e80abf85da0e1bcfeeed95b939a2	refs/heads/external/bug/ep
0bbe15192d55c81d0fa4593794872b5b74ccfcf3	refs/heads/external/bug/jgit-24
a24504ccf3ed41e91507ced4831fd53f29e8e329	refs/heads/feat/simplify-to-provider
288b40b3546673c7436014e3ce85afe18ee41bcc	refs/heads/main
83dd4f2753542316a142ac7c08edd6f5a027bd13	refs/heads/renovate/com.gradle.develocity-3.x
6c4a9651818e451604e4525cbb7b4354e231c38b	refs/heads/renovate/gradle-8.x
e8673335d1deca1e6a800f30c586af8da2d9ffb7	refs/heads/test/stringy-version-comparision
b2e1fd0d8277bad288f7fed1b7f16dd0f3242202	refs/tags/v0.10.0
b746724eb7f2adbd254ebe66219d83fbad411326	refs/tags/v0.10.0^{}
a385a1c3612a61bb9987cfb9cc478da9853a0819	refs/tags/v0.11.0
2c3ef8cdb5068e47f818af0c2bb81c5a6a2b2056	refs/tags/v0.11.0^{}
2ed114811a879c13224109bbc71d722434a94d6c	refs/tags/v0.11.1
ac9af93d977500c7e08aa531b16827e2b6e238b7	refs/tags/v0.11.1^{}
bce046b7e02c4441cecd8595a1440bd9b9950152	refs/tags/v0.11.2
f9aceb26fbeb991794ca4deea20f05fb1950c344	refs/tags/v0.11.2^{}
732251a2c7d9d485fb4d96381b8599ac5f44425d	refs/tags/v0.11.3
64181cebba9566ad9649562ac45cffc243b12566	refs/tags/v0.11.3^{}
ddbcf4b82c29feea092eadfc24e25809e1cec2a1	refs/tags/v0.11.4
4a9f93c92eb5caaf9770370aa814c86e9cc54864	refs/tags/v0.11.4^{}
c9e4006b3f5d9000b9e6f9a4dc642499c3a1dd05	refs/tags/v0.8.0
28aed91489305f1326f19213f4c00e1a747a60cd	refs/tags/v0.8.0^{}
3f1d87cad55ff6d3784b73aa314af85cb6ea85a0	refs/tags/v0.8.1
5e29dc971c69ce8559580514b514d3c71cad577c	refs/tags/v0.8.1^{}
debb2014de56f972ec18c15caf624dec17df0e77	refs/tags/v0.8.2
446b9ff7a63559f0732e482c9554c7c6e1a8bb74	refs/tags/v0.8.2^{}
8f703482e7181eadf19d72f5763840ea0b999852	refs/tags/v0.8.3
1710cba5a4a1a09d6c20544e8532692cc125231e	refs/tags/v0.8.3^{}
a08df464cd3fe70a5edf42a874175ae7dfb4efd1	refs/tags/v0.8.4
097498718e97936ea0596082f3828dda8d0795e2	refs/tags/v0.8.4^{}
b7bfb90c070633e2ad11d0d6a90392839f576c9e	refs/tags/v0.9.0
a9d2fc1b53cc478b73f6a14d0586e3fd4098e939	refs/tags/v0.9.0^{}
4cf99857d114c5f19ba300733995f54499388e16	refs/tags/v0.9.1
eab109dbc4163b9f734da0d662eab0d5f0652363	refs/tags/v0.9.1^{}
14fc036f1941938f2e27b2fceb8298b924017da7	refs/tags/v0.9.2
ea748b4de02b91788436c33adb962b38a1a123b8	refs/tags/v0.9.2^{}
4a67312164fb3d4c0465c1fc2aaf776c9c421ed4	refs/tags/v0.9.3
761c420fa9812584e90750ca73197402603e76cc	refs/tags/v0.9.3^{}
fd43a6c79bbad727889cd26b852d5651c6f6b45b	refs/tags/v0.9.4
ed2869a4e5e23873113ddf15307146e1e0d077f7	refs/tags/v0.9.4^{}
ed031c4a4f128cd12faf7680b56052a26ae8e15e	refs/tags/v0.9.5
7ad7fad790dfabbe91a0be03a87c3f7e3d5cc8fd	refs/tags/v0.9.5^{}
01f2f6e9431c45b3180017ddfc12bbf5661cc184	refs/tags/v0.9.6
2fc0f8fb3ef640aaefc1d99f2b75ac45fd25286d	refs/tags/v0.9.6^{}
5a5f9e45ef868639db2cb2a64387464fda687a54	refs/tags/v0.9.7
a4b6ea57800458d44eb42622bb7ea55a07ae70a2	refs/tags/v0.9.7^{}

Which also doesn't contain HEAD. Hence I think there is no problem with the JGit implementation in LsRemoteCommand.

The equivalent jgit command $jgit ls-remote --heads --tags https://github.com/xenoterracide/gradle-semver.git yields the exact same result.

@xenoterracide
Copy link
Author

xenoterracide commented Nov 19, 2024

right, but there's also no api to retrieve it (that I could see) the symref cli you showed in the other ticket is not exposed via the java api. whereas git gives you 288b40b3546673c7436014e3ce85afe18ee41bcc HEAD by default with no options.

@xenoterracide
Copy link
Author

xenoterracide commented Nov 21, 2024

it's worth saying that I now believe HEAD will show up if the HEAD ref exists on the disk. It doesn't show up like it will in git if it doesn't exist on disk. It turns out that clone will add it to disk, but that git remote add .../ git fetch will not. git ls-remote will show HEAD either way.

My api usage may not reflect the desired outcome which is arguably that no options should return more, and it appeared to return less, and that no options appear to result in the same output that git itself can give.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants