]> git.pld-linux.org Git - packages/eventum.git/commitdiff
keep-around last FETCH_HEAD
authorElan Ruusamäe <glen@delfi.ee>
Thu, 21 Sep 2017 10:07:55 +0000 (13:07 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 21 Sep 2017 10:07:55 +0000 (13:07 +0300)
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.045548 seconds and 4 git commands to generate.