Skip to content

Commit

Permalink
add safe directory config
Browse files Browse the repository at this point in the history
  • Loading branch information
brettinternet committed Jan 3, 2024
1 parent 56496d0 commit 082e7c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions update-mirrors/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ function update {
REPO_PARENT_DIR="$WORKING_DIRECTORY/$REPO_OWNER"
REPO_PATH="$REPO_PARENT_DIR/$REPO_NAME"

git config --global --add safe.directory $REPO_PATH

if [ -d "$REPO_PATH" ]; then
echo "Updating mirror in $REPO_PATH"
git -C $REPO_PATH remote update -p
Expand Down

0 comments on commit 082e7c9

Please sign in to comment.