X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fa701fc119f67c4c7626ac07f2e081f249106305..da3e292dc325b96df2c805d729427c8bf6741b81:/cookbooks/nominatim/templates/default/nominatim-update-source.erb diff --git a/cookbooks/nominatim/templates/default/nominatim-update-source.erb b/cookbooks/nominatim/templates/default/nominatim-update-source.erb index 43a486511..dacb6190e 100644 --- a/cookbooks/nominatim/templates/default/nominatim-update-source.erb +++ b/cookbooks/nominatim/templates/default/nominatim-update-source.erb @@ -9,13 +9,14 @@ date "+%c === Checking for new versions of Nominatim" cd <%= @srcdir %> git fetch origin +git fetch origin -tf -if git diff --exit-code origin/<%= node[:nominatim][:revision] %> >/dev/null; then +if git diff --exit-code <%= node[:nominatim][:revision] %> >/dev/null; then # signal that there are no new updates exit 99 fi -git merge origin/<%= node[:nominatim][:revision] %> +git checkout --detach <%= node[:nominatim][:revision] %> git submodule update cd <%= @builddir %>