• Vitaly Lipatov's avatar
    rpmgs: git_to_tarball: checkout tag matching spec Version · fbb45e7f
    Vitaly Lipatov authored
    When Source-url points to a .git URL without /tree/<ref> or /commit/<sha>,
    git_to_tarball just cloned and packed HEAD. If upstream HEAD had moved past
    the spec Version, the resulting tarball contained sources from a different
    release than the spec claimed (observed in hddfancontrol 2.1.0-alt1, which
    shipped 2.1.1 sources because HEAD was already at 2.1.1 when packaged).
    
    Now if no explicit checkout is given via URL, try to checkout 'v$VERSION'
    or '$VERSION' tag and fail loudly if neither exists. To get a HEAD
    snapshot intentionally, pass HEAD as the version (rpmgs already supports
    this) or use # Source-url: ...git/tree/<ref>.
    
    Also init submodules after checkout so the packed tree reflects the tag.
    fbb45e7f
Name
Last commit
Last update
..
aptU Loading commit data...
dmake Loading commit data...
emkimage Loading commit data...
gacl Loading commit data...
gammit Loading commit data...
gita Loading commit data...
gitask Loading commit data...
jmake Loading commit data...
loginhsh Loading commit data...
myhsh Loading commit data...
rpmbb Loading commit data...
rpmbp Loading commit data...
rpmbph Loading commit data...
rpmbps Loading commit data...
rpmbs Loading commit data...
rpmbsh Loading commit data...
rpmbugs Loading commit data...
rpmck Loading commit data...
rpmcs Loading commit data...
rpmeterbuild Loading commit data...
rpmgp Loading commit data...
rpmgs Loading commit data...
rpmlog Loading commit data...
rpmpub Loading commit data...
rpmrb Loading commit data...
rpmreqs Loading commit data...
rpmunmets Loading commit data...
rpmurl Loading commit data...
runinhsh Loading commit data...