This commit is contained in:
2026-02-12 11:22:51 +03:00
parent 7c2d731399
commit f2785241bf
6 changed files with 16 additions and 16 deletions

View File

@@ -81,7 +81,7 @@ Global flags:
Sync flags:
--forward Forward only (mono → subrepo)
--reverse Reverse only (subrepo → mono)
--target NAME Filter to one target (env: JOSH_SYNC_TARGET)
--target NAME Filter to target(s) — comma-separated for multiple (env: JOSH_SYNC_TARGET)
--branch BRANCH Filter to one branch
Environment:
@@ -137,7 +137,7 @@ _sync_direction() {
target_name=$(echo "$TARGET_JSON" | jq -r '.name')
# Filter to specific target if requested
if [ -n "$filter_target" ] && [ "$filter_target" != "$target_name" ]; then
if [ -n "$filter_target" ] && ! echo ",$filter_target," | grep -q ",${target_name},"; then
continue
fi