Browse Source

pull repo do clone + force

main
pvincent 1 week ago
parent
commit
4b005009e5
  1. 1
      lib/setup-prod-normal-user.bash

1
lib/setup-prod-normal-user.bash

@ -38,6 +38,7 @@ function pull_repo {
git clone $REPO_URL --branch $REPO_BRANCH . git clone $REPO_URL --branch $REPO_BRANCH .
git config --global init.defaultBranch $REPO_BRANCH git config --global init.defaultBranch $REPO_BRANCH
git config pull.rebase true git config pull.rebase true
FORCE=true
fi fi
if git fetch origin $REPO_BRANCH --dry-run --verbose 2>&1 | grep -q " =.*\-> origin\/$REPO_BRANCH"; then if git fetch origin $REPO_BRANCH --dry-run --verbose 2>&1 | grep -q " =.*\-> origin\/$REPO_BRANCH"; then

Loading…
Cancel
Save