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() { _hook_git() {
cd "$dir_source/$name/vcs" cd "$dir_source/$name/vcs"
git remote update git pull > /dev/null
if [ "$(git rev-parse @)" != "$(git rev-parse @{u})" ]; then _func_rev="$(git rev-parse @)"
git pull 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 vcs_compile=true
fi fi
version="$(git rev-list HEAD --count)_$(git rev-parse --short HEAD)" version="$(git rev-list HEAD --count)_$(git rev-parse --short HEAD)"

Loading…
Cancel
Save