From eeefeb54fcd9486d719d1a68607a91df81ed6149 Mon Sep 17 00:00:00 2001 From: Mikejmnez Date: Thu, 19 Sep 2024 11:22:09 -0700 Subject: [PATCH] move the command at top before `init` --- travis/deploy_to_gh_pages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis/deploy_to_gh_pages.sh b/travis/deploy_to_gh_pages.sh index 95d79ff..6f09e65 100755 --- a/travis/deploy_to_gh_pages.sh +++ b/travis/deploy_to_gh_pages.sh @@ -31,10 +31,10 @@ cp -R ../images images echo "${index_html}" | tee index.html # Now we set up the git repo +git config --global init.defaultBranch "main" git init git config user.name "${GIT_USER_NAME}" git config user.email "{GIT_USER_EMAIL}" -git config --global init.defaultBranch "main" # Add and commit the content git add . git status