From: Enrique Ocaña González Date: Thu, 28 Jul 2016 08:40:22 +0000 (+0200) Subject: support/download/git: Fix compatibility issue with git older than 1.8.4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e39f0873393189278d92ac3589a329f42c8311c;p=buildroot.git support/download/git: Fix compatibility issue with git older than 1.8.4 The "--no-patch" option used by the git downloader 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. Signed-off-by: Enrique Ocaña González Tested-by: Matthew Weber Tested-by: "Yann E. MORIN" Acked-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- diff --git a/support/download/git b/support/download/git index 663006b4d0..416cd1baf2 100755 --- a/support/download/git +++ b/support/download/git @@ -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