tCheckout commit before creating git archives - distro - linux distribution experiments
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit e1ec267c4acada6e9bc849b188391d63cbfedbc5
DIR parent 80cf7474a1e5da650274d5f528157830f3abfe20
HTML Author: z3bra <contactatz3bradotorg>
Date: Fri, 26 Oct 2018 08:05:04 +0200
Checkout commit before creating git archives
Diffstat:
M pkg/build.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/pkg/build.mk b/pkg/build.mk
t@@ -27,7 +27,7 @@ $archive:
mkdir -p $(dirname $archive)
if [ -n "$git" ]; then
git clone --bare $git .repo
- (cd .repo; git archive --prefix $pkg-$ver/ $ver) | bzip2 > $archive
+ (cd .repo; git checkout $ver; git archive --prefix $pkg-$ver/ $ver) | bzip2 > $archive
rm -rf .repo
elif [ -n "$url" ]; then
curl -L $url > $archive