[packages/eventum: 8/11] keep-around last FETCH_HEAD
glen
glen at pld-linux.org
Sun Oct 8 13:02:01 CEST 2017
commit 0ba58a58151a250459d2d5181ddc974fccf53e4f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Sep 21 13:07:55 2017 +0300
keep-around last FETCH_HEAD
update-source.sh | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/update-source.sh b/update-source.sh
index 9c8c607..d956e7a 100755
--- a/update-source.sh
+++ b/update-source.sh
@@ -17,6 +17,8 @@ elif [ "$1" ]; then
else
# use tarball from "snapshot" build
git fetch "$repo_url" refs/tags/snapshot
+ # save this under some local ref, so repeated calls don't have to fetch everything
+ git update-ref refs/keep-around/snapshot FETCH_HEAD
out=$(git show FETCH_HEAD -s)
tarball=$(echo "$out" | grep -o 'eventum-.*\.tar.gz')
url="$repo_url/releases/download/snapshot/$tarball"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eventum.git/commitdiff/935f6c79d48534409a6bc8f2018a2e0230fa1cc9
More information about the pld-cvs-commit
mailing list