diff --git a/satellites/functions/vcs/git.sh b/satellites/functions/vcs/git.sh index 2031c43..246d62f 100644 --- a/satellites/functions/vcs/git.sh +++ b/satellites/functions/vcs/git.sh @@ -11,8 +11,9 @@ vcs_git() { else cd "$dir" - git fetch > /dev/null - git reset --hard FETCH_HEAD > /dev/null + if git fetch > /dev/null; then + git reset --hard FETCH_HEAD > /dev/null + fi local rev="$(git rev-parse @)" if [ "$rev" != "$(cat "${dir}_rev_$_satname" 2> /dev/null || true)" ]; then echo "$rev" > "${dir}_rev_$_satname"