Skip to content

Commit

Permalink
fixup! script: add max commit failsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
ServarrAdmin committed Dec 22, 2024
1 parent fc25e8f commit 22d0984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/indexer-sync-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,12 @@ pull_cherry_and_merge() {
log "DEBUG" "Get Range Command is [$commit_range_cmd]"
# read -r -p "Pausing to review commits. Press any key to continue." -n1 -s
fi
log "INFO" "Commit Range is: [$commit_range]"
# Enforce maximum commits threshold
if [ "$commit_count" -gt "$MAX_COMMITS_TO_PICK" ]; then
log "ERROR" "Commit count [$commit_count] is greater than [$MAX_COMMITS_TO_PICK]. Exiting."
exit 4
fi
log "INFO" "Commit Range is: [$commit_range]"
log "INFO" "-- Beginning Cherrypicking ---"
git config merge.directoryRenames true
git config merge.verbosity 0
Expand Down

0 comments on commit 22d0984

Please sign in to comment.