From 0ba58a58151a250459d2d5181ddc974fccf53e4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 21 Sep 2017 13:07:55 +0300 Subject: [PATCH] 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" -- 2.43.0