diff --git a/deploy/sync-vps-repos.sh b/deploy/sync-vps-repos.sh index d18e693..6757279 100755 --- a/deploy/sync-vps-repos.sh +++ b/deploy/sync-vps-repos.sh @@ -154,6 +154,7 @@ if [[ "${DO_PULL}" -eq 1 ]]; then run_checked "git fetch ${repo}" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" fetch --force "${remote_name}" "${branch}" --tags run_checked "git pull --rebase --autostash ${repo}" git ${GIT_SSH_FLAGS[@]+"${GIT_SSH_FLAGS[@]}"} -C "${REPOS_ROOT}/${repo}" pull --rebase -X theirs --autostash "${remote_name}" "${branch}" fi + git -C "${REPOS_ROOT}/${repo}" stash pop -q || true unmerged_paths="$(git -C "${REPOS_ROOT}/${repo}" diff --name-only --diff-filter=U || true)" if [[ -n "${unmerged_paths}" ]]; then while IFS= read -r uf; do