• 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
.gear Loading commit data...
bin Loading commit data...
etc Loading commit data...
po Loading commit data...
share/eterbuild Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
NEWS Loading commit data...
QuickHelp.txt Loading commit data...
QuickHelp.utf8.txt Loading commit data...
README.md Loading commit data...
README.ru.md Loading commit data...
TODO Loading commit data...
check_et.log Loading commit data...
check_reqs.sh Loading commit data...
etersoft-build-utils.spec Loading commit data...