Skip to content

Commit f8c96dc

Browse files
committed
fix: git error 128
1 parent bbe75fc commit f8c96dc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/delete-stale-branches.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,15 @@ main() {
138138
branch_info_file=$(mktemp)
139139
trap 'rm -f "$branch_info_file"' EXIT
140140

141-
# Ensure we have all git information
142-
git fetch --prune origin || true
143-
144141
# Validate script requirements
145142
validate_requirements
146143

144+
git config --global user.email "droneci@placeholder.com"
145+
git config --global user.name "Drone CI"
146+
147+
# Ensure we have all git information
148+
git fetch --prune origin || true
149+
147150
# Parse repository information
148151
parse_repo_info || exit 1
149152

0 commit comments

Comments
 (0)