Skip to content

Commit 3b2a72d

Browse files
committed
Improve mac install to force update to latest even if local changes exist (somehow)
1 parent 2bd5244 commit 3b2a72d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

install_mac.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ if [ -z "$(ls -A "$install_path")" ]; then
106106
else
107107
echo "Updating DeepMake at $install_path"
108108
cd "$install_path"
109-
git pull
109+
git fetch --all
110+
git reset --hard origin/main
111+
git pull -f
110112
cd -
111113
fi
112114

@@ -125,7 +127,9 @@ if [ -z "$(ls -A "$install_path/plugin/Diffusers")" ]; then
125127
else
126128
echo "Updating Diffusers Plugin at $install_path/plugin/Diffusers"
127129
cd "$install_path/plugin/Diffusers"
128-
git pull
130+
git fetch --all
131+
git reset --hard origin/main
132+
git pull -f
129133
cd -
130134
fi
131135

0 commit comments

Comments
 (0)