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