Skip to content

Commit 4cd291e

Browse files
stuggiclaude
andcommitted
Ignore .git directory in switch_prow_jobs_fr_branch.sh
Update the find command to exclude the .git directory when searching for files matching "18.0-fr" pattern. This prevents attempting to process files in the git repository metadata. Changes: - Add `-name .git -prune` to skip .git directory - Add `-type f` to only match files (not directories) - Use `-o -print` to print matching files Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 4423aa9 commit 4cd291e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

switch_prow_jobs_fr_branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -ex
1212
CURRENT=$1
1313
NEXT=$2
1414

15-
for X in $(find . | grep 18.0-fr); do
15+
for X in $(find . -name .git -prune -o -type f -print | grep 18.0-fr); do
1616
#rename the file (NOTE: prow jobs require frX in the name)
1717
NEW_FILE=$(echo $X | sed -e "s|$CURRENT|$NEXT|")
1818
git mv $X $NEW_FILE

0 commit comments

Comments
 (0)