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