]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/updater.erb
nominatim: run git update in source directory
[chef.git] / cookbooks / nominatim / templates / default / updater.erb
index 5c5a4448b5f6898e7ca99e628d24bb8abbd18d1d..8a3cf027edf4f2549a835e300d8e5d566afc8c49 100644 (file)
@@ -13,12 +13,14 @@ do
 
     ./utils/update.php --no-npi --import-osmosis
 
+    pushd <%= @srcdir %>
     if git fetch origin; then
       # will trigger recompilation if necessary
       git merge origin/<%= @branch %>
     else
       echo "WARNING: git fetch failed."
     fi
+    popd
 
     # sleep a bit if updates take less than a minute
     endtime=`date +%s`