diff --git a/lib/setup-prod-normal-user.bash b/lib/setup-prod-normal-user.bash index 98aac95..348b6f2 100644 --- a/lib/setup-prod-normal-user.bash +++ b/lib/setup-prod-normal-user.bash @@ -35,14 +35,11 @@ function install_mise { function pull_repo { if [[ ! -d .git ]]; then + git clone $REPO_URL --branch $REPO_BRANCH . git config --global init.defaultBranch $REPO_BRANCH - git init git config pull.rebase true - git remote add origin $REPO_URL fi - git branch --set-upstream-to=origin/$REPO_BRANCH $REPO_BRANCH - if git fetch origin $REPO_BRANCH --dry-run --verbose 2>&1 | grep -q " =.*\-> origin\/$REPO_BRANCH"; then set +Eue show_repo_info