Skip to content

Commit

Permalink
Merge pull request #98 from zeerayne/feature-reset-instead-pull
Browse files Browse the repository at this point in the history
Feature: Use `get reset --hard` instead of `git pull` for updating repo
  • Loading branch information
kRHYME7 authored Nov 27, 2024
2 parents 00dc8b9 + 1bb8109 commit e5d5a6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Hyde
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ update() { #? Pull updates from Hyde repository
get_aurhlpr
print_prompt -y "Pulling Hyde repo..."
git stash >/dev/null
git pull
git fetch
remote_branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u})
git reset ${remote_branch} --hard
git stash pop 2>/dev/null
print_prompt -y "Checking Hyde CLI updates..."
[[ ${CLI_PATH} != *"/usr"* ]] && export HYDE_LOCAL=1
Expand Down

0 comments on commit e5d5a6a

Please sign in to comment.