diff --git a/scripts/fetch-commits.sh b/scripts/fetch-commits.sh index ce7c92ed4b56..69149eb77bd0 100755 --- a/scripts/fetch-commits.sh +++ b/scripts/fetch-commits.sh @@ -37,12 +37,9 @@ function getContainerRepos() { } # Commits a directory -function commitChanges() { +function gitConfigure() { git config user.name "Bitnami Containers" git config user.email "containers@bitnami.com" - - # git diff --exit-code --quiet - git diff --exit-code || (git add -A && git commit -m "Sync ${name} files") } function pushChanges() { @@ -89,6 +86,8 @@ syncCommit() { function syncRepos() { local -r repos="$(getContainerRepos)" + gitConfigure # Configure Git client + mkdir -p "$TARGET_DIR" # Build array of app names since we need to exclude them when moving files