]> git.pld-linux.org Git - packages/eventum.git/blobdiff - update-source.sh
keep-around last FETCH_HEAD
[packages/eventum.git] / update-source.sh
index 9c8c607af128e201ba3ce5074aa87845f75e74a6..d956e7a763957b9d16d79fb913f0db8edd3115c5 100755 (executable)
@@ -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"
This page took 0.082988 seconds and 4 git commands to generate.