support/download: support git older then 1.8.x
PATCH 1/1 support/download: support git older then 1.8.x
A recent commit[1] in the git downloader uses the "--no-patch" option, which appeared on git 1.8.4. Systems with older git versions show an error and fall back to the wget downloader, which isn't suitable for all the cases.
This commit uses a "git log" variant and works on older systems.
--- support/download/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
support/download/git +1 -1
@@ -76,7 +76,7 @@ _git checkout -q "'${cset}'" # Get date of commit to generate a reproducible archive. # %cD is RFC2822, so it's fully qualified, with TZ and all. -date="$( _git show --no-patch --pretty=format:%cD )" +date="$( _git log -1 --pretty=format:%cD )" # There might be submodules, so fetch them. if [ ${recurse} -eq 1 ]; then
Signature · 1 line
1.9.1
PATCH 1/1 support/download: support git older then 1.8.x
Matt, All,
Nit-pick: since you applied Enrique's patch, you should probably have used him as author.
On 2016-07-27 15:57 -0500, Matt Weber spake thusly:
Quoted 11 lines
A recent commit[1] in the git downloader uses the "--no-patch" option, which appeared on git 1.8.4. Systems with older git versions show an error and fall back to the wget downloader, which isn't suitable for all the cases.
This commit uses a "git log" variant and works on older systems.
Signed-off-by Enrique Ocana Gonzalez <[email protected]>
Beside, you can't go adding a SoB-line for someone else. A SoB-line is kinda legaly-binding:
http://developercertificate.org/
Enrique, if you agree that your SoB-line is warranted, we can go the fast route: just reply to the original mail with your own SoB-line, and all will be good in the best of the worlds! ;-)
Quoted 10 lines
Signed-off-by Matthew Weber <[email protected]>--- support/download/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)support/download/git +0
-0
support/download/git _git checkout -q "'${cset}'" · line 79
Quoted 5 lines
support/download/git +1
-1@@ -76,7 +76,7 @@ _git checkout -q "'${cset}'" # Get date of commit to generate a reproducible archive. # %cD is RFC2822, so it's fully qualified, with TZ and all. -date="$( _git show --no-patch --pretty=format:%cD )" +date="$( _git log -1 --pretty=format:%cD )"
Regards,
Yann E. MORIN.
Quoted 9 lines
support/download/git +0
-0# There might be submodules, so fetch them. if [ ${recurse} -eq 1 ]; thenSignature · 6 lines
1.9.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/1 support/download: support git older then 1.8.x
El mi?rcoles, 27 de julio de 2016 23:47:55 (CEST) Yann E. MORIN escribi?:
Quoted 3 lines
Enrique, if you agree that your SoB-line is warranted, we can go the fast route: just reply to the original mail with your own SoB-line, and all will be good in the best of the worlds! ;-)
I tried to send the patch to the list yesterday (before Matt's submission) but the email got bounced because I wasn't subscribed to the list. I've subscribed today and resent the patch which got originally bounced.
Cheers.
Signature · 1 line
Enrique Oca?a Gonz?lez
A message that is not in the archive (sent off-list or not yet received): CANQCQpbXyAYztS5MkDU_nYdC6Tta9MYVLijqGuB2k_B3YpBp8Q@mail.gmail.com
PATCH 1/1 support/download: support git older then 1.8.x
Quoted 8 lines · Enrique Oca?a Gonz?lez
El mi?rcoles, 27 de julio de 2016 23:47:55 (CEST) Yann E. MORIN escribi?:
Quoted 3 lines
Enrique, if you agree that your SoB-line is warranted, we can go the fast route: just reply to the original mail with your own SoB-line, and all will be good in the best of the worlds! ;-)
I tried to send the patch to the list yesterday (before Matt's
submission) but
Quoted 1 line
the email got bounced because I wasn't subscribed to the list. I've
subscribed
Quoted 1 line
today and resent the patch which got originally bounced.
Sounds Good, I'll mark mine as rejected and review yours.
Quoted 5 lines
Cheers.
--
Enrique Oca?a Gonz?lez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160728/a8f80d96/attachment.html>