From 06e4aeda181cd75d3779072af4d688bef738233c Mon Sep 17 00:00:00 2001 From: "Miguel A. Cabrera Minagorri" Date: Tue, 12 Apr 2022 12:55:35 +0200 Subject: [PATCH] Configure git client before start sync Signed-off-by: Miguel A. Cabrera Minagorri --- scripts/fetch-commits.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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