From 635705288f675e9d8305e1544069c22df5ebc7a2 Mon Sep 17 00:00:00 2001 From: Jeremy McClure Date: Sat, 1 Aug 2026 16:44:46 -0400 Subject: [PATCH] fix: hard reset to remote on update to ensure exact match --- default/.config/zsh/functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default/.config/zsh/functions.zsh b/default/.config/zsh/functions.zsh index 6c1fcfb..8c49e8c 100644 --- a/default/.config/zsh/functions.zsh +++ b/default/.config/zsh/functions.zsh @@ -27,7 +27,7 @@ dotstate_update() { [[ "$remote_sha" == "$local_sha" ]] && return 0 info "Repository out of date. Pulling updates..." - git pull &>/dev/null + git fetch origin && git reset --hard origin/master && git clean -fd &>/dev/null dotstate activate exec zsh } \ No newline at end of file