Skip to content

Commit e5d5a6a

Browse files
authored
Merge pull request #98 from zeerayne/feature-reset-instead-pull
Feature: Use `get reset --hard` instead of `git pull` for updating repo
2 parents 00dc8b9 + 1bb8109 commit e5d5a6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Hyde

+3-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ update() { #? Pull updates from Hyde repository
263263
get_aurhlpr
264264
print_prompt -y "Pulling Hyde repo..."
265265
git stash >/dev/null
266-
git pull
266+
git fetch
267+
remote_branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u})
268+
git reset ${remote_branch} --hard
267269
git stash pop 2>/dev/null
268270
print_prompt -y "Checking Hyde CLI updates..."
269271
[[ ${CLI_PATH} != *"/usr"* ]] && export HYDE_LOCAL=1

0 commit comments

Comments
 (0)