diff --git a/update.sh b/update.sh index e91f246..e9d1af8 100755 --- a/update.sh +++ b/update.sh @@ -41,6 +41,7 @@ command -v go >/dev/null || die "go nicht gefunden" if [[ -d "$BUILD_DIR/.git" ]]; then info "Aktualisiere Quellcode aus Gitea..." + git config --global --add safe.directory "$BUILD_DIR" 2>/dev/null || true git -C "$BUILD_DIR" fetch origin git -C "$BUILD_DIR" reset --hard origin/main log "Quellcode aktualisiert ($(git -C "$BUILD_DIR" log -1 --format='%h %s'))"