From: Eugene Syromyatnikov Date: Thu, 27 Oct 2016 20:43:36 +0000 (+0300) Subject: make-dist: use HEAD for making distribution package X-Git-Tag: v4.15~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79dca294d1ed7cc2f8b245f4c75deb8d6d19494d;p=strace make-dist: use HEAD for making distribution package * make-dist: Use HEAD commit instead of master branch by default. --- diff --git a/make-dist b/make-dist index 9accae76..41baa209 100755 --- a/make-dist +++ b/make-dist @@ -1,6 +1,6 @@ #!/bin/sh -e -tag="${1:-master}" +id="$(git rev-parse --verify "${1:-@}^{commit}")" j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j= @@ -12,7 +12,7 @@ set -x git clone -q -n -s .git "$distdir" cd $distdir -git checkout -f "$tag" +git checkout -f "$id" ./git-set-file-times