commit 0ba58a58151a250459d2d5181ddc974fccf53e4f
Author: Elan Ruusamäe <g...@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

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to