From 2bfd0c8e5a88e52073a54e645dbcffd864a1d945 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Wed, 18 Nov 2015 23:24:04 +0100 Subject: [PATCH] Track last build rev per package, not per project. --- satellites/functions/vcs/git.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/satellites/functions/vcs/git.sh b/satellites/functions/vcs/git.sh index 3fab807..c9851a6 100644 --- a/satellites/functions/vcs/git.sh +++ b/satellites/functions/vcs/git.sh @@ -9,9 +9,10 @@ vcs_git() { _hook_git() { cd "$dir_source/$name/vcs" - git remote update - if [ "$(git rev-parse @)" != "$(git rev-parse @{u})" ]; then - git pull + git pull > /dev/null + _func_rev="$(git rev-parse @)" + if [ "$_func_rev" != "$(cat "$dir_source/$name/vcs_rev_$_satname" 2> /dev/null || true)" ]; then + echo "$_func_rev" > "$dir_source/$name/vcs_rev_$_satname" vcs_compile=true fi version="$(git rev-list HEAD --count)_$(git rev-parse --short HEAD)"