fix(deploy): pop stashed local changes after git pull in sync-vps-repos.sh
This commit is contained in:
1 parent
a70b8614f1
commit
fe4cb38f0b
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user