fix(deploy): pop stashed local changes after git pull in sync-vps-repos.sh

This commit is contained in:
Hermes Agent committed 2026-12-02 13:48:40 +00:00
1 parent a70b8614f1
commit fe4cb38f0b
1 file changed
+1
+1
View File
@@ -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 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}" 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 fi
git -C "${REPOS_ROOT}/${repo}" stash pop -q || true
unmerged_paths="$(git -C "${REPOS_ROOT}/${repo}" diff --name-only --diff-filter=U || true)" unmerged_paths="$(git -C "${REPOS_ROOT}/${repo}" diff --name-only --diff-filter=U || true)"
if [[ -n "${unmerged_paths}" ]]; then if [[ -n "${unmerged_paths}" ]]; then
while IFS= read -r uf; do while IFS= read -r uf; do