mirror of
https://github.com/Xe138/windmill-git-sync.git
synced 2026-04-01 17:27:23 -04:00
- Clone remote repository on first sync if workspace is empty - Sync local repo with remote (fetch + hard reset) on subsequent syncs - Ensures Windmill workspace changes are built on latest remote commits - Prevents push failures due to divergent history New functions: - is_workspace_empty(): Check if workspace needs cloning - clone_remote_repository(): Clone and checkout/create branch - sync_local_with_remote(): Fetch and hard reset to remote Co-Authored-By: Claude <noreply@anthropic.com>