You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
git clone/checkout fails when using commit sha1 as tag #106
<project>
<name>Schedul-o-matic-9000</name>
<type>git</type>
<connection>https://github.com/pmd/Schedul-o-matic-9000</connection>
<!-- <connection>https://github.com/SalesforceLabs/Schedul-o-matic-9000</connection> Note: using forked repo from pmd, as original repo doesn't have any useful tags/branches-->
<tag>pmd-regression-test</tag>
</project>
It would be nice to allow to specify directly a sha1 for the commit, e.g.
Activity
[-]Allow to specify commits in project-list[/-][+]Allow to specify commit in project-list[/+]adangel commentedon May 5, 2022
Hm... this does already work. At least in the integration test.
Use commit for tag in project-list
adangel commentedon May 5, 2022
All pmd-regression-tester does, is executing:
git checkout 6b1229ba43b38931fbbab5924bc9b9611d19a786 && git reset --hard 6b1229ba43b38931fbbab5924bc9b9611d19a786:pmd-regression-tester/lib/pmdtester/builders/project_builder.rb
Line 100 in 0b3d39f
And that works fine. Git checks out in detached mode.
adangel commentedon May 12, 2022
Ok, so it works for https://github.com/SalesforceLabs/Schedul-o-matic-9000 because "6b1229ba43b38931fbbab5924bc9b9611d19a786" is the latest commit referenced by HEAD: https://github.com/SalesforceLabs/Schedul-o-matic-9000/commits/master
As soon as a new commit is added, it'll stop working.
For the other repo https://github.com/apex-enterprise-patterns/fflib-apex-common we use the commit "7e0891efb86d23de62811af56d87d0959082a322", which is not the HEAD, and hence it fails:
[-]Allow to specify commit in project-list[/-][+]git clone/checkout fails when using commit sha1 as tag[/+][doc] Update release notes (pmd#106)