mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-01 21:00:29 +08:00
update.sh: fetch will prune
This commit is contained in:
parent
56e2b217eb
commit
dc92cd249b
@ -9,7 +9,7 @@ DFS_UPDATE_CHANNEL=${DFS_UPDATE_CHANNEL:-"main"}
|
||||
|
||||
# fetch origin
|
||||
cd $DOTFILES
|
||||
git fetch --all
|
||||
git fetch --all --prune
|
||||
if [[ -n "$(git status -s)" ]]; then
|
||||
fmt_error "directory not clean"
|
||||
post_log "ERROR" "$THIS_FILE" "directory not clean"
|
||||
|
Loading…
x
Reference in New Issue
Block a user