ai/at
1
0

fix install.zsh pull

This commit is contained in:
2025-12-09 13:35:44 +09:00
parent ddb69a2b1d
commit 6621d6f8cf
3 changed files with 7 additions and 20 deletions

View File

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