Browse Source

Track last build rev per package, not per project.

master
mid-kid 9 years ago
parent
commit
2bfd0c8e5a
  1. 7
      satellites/functions/vcs/git.sh

7
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)"

Loading…
Cancel
Save