ai/at
1
0

fix install.zsh pull

This commit is contained in:
2025-12-09 13:35:44 +09:00
parent ddb69a2b1d
commit b6650865fd

View File

@@ -100,6 +100,9 @@ function at-repos-pull() {
echo $repo echo $repo
if [ -d $d/repos/${repo##*/} ];then if [ -d $d/repos/${repo##*/} ];then
cd $d/repos/${repo##*/} cd $d/repos/${repo##*/}
# Clean up before pull: reset changes and remove .orig files from previous patches
git checkout -- .
find . -name "*.orig" -type f -delete 2>/dev/null
git stash -u git stash -u
if ! git pull;then if ! git pull;then
rm -rf $d/repos/${repo##*/} rm -rf $d/repos/${repo##*/}