diff options
author | Enrique Ocaña González <eocanha@igalia.com> | 2016-07-28 10:40:22 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2016-07-28 22:02:13 +0200 |
commit | 1e39f0873393189278d92ac3589a329f42c8311c (patch) | |
tree | c6b099d25dcfb8ddc8cf4c45937821f47a3b2d7e /support | |
parent | d3aa44023633f85ed5c51386fdec3f54f46fb490 (diff) | |
download | buildroot-1e39f0873393189278d92ac3589a329f42c8311c.tar.gz buildroot-1e39f0873393189278d92ac3589a329f42c8311c.zip |
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 <eocanha@igalia.com>
Tested-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support')
-rwxr-xr-x | support/download/git | 2 |
1 files changed, 1 insertions, 1 deletions
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 |