fix: hard reset to remote on update to ensure exact match
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user