diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index 13e55b5..11f9257 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -122,7 +122,7 @@ check_unpushed() { local git_repos=($(find ~ -name .git -type d -not -path '*/.vim/*' -and -not -path '*/.local/*' -and -not -path '*/builds/*' -exec dirname {} \;)) for repo in "${git_repos[@]}"; do cd "$repo" || exit 1 - local unpushed=$(git log --pretty=format:'%h' '@{u}..' | wc -c) + local unpushed=$(git log --pretty=format:'%h' '@{u}..' 2>/dev/null | wc -c) if [ "$unpushed" -ne 0 ]; then echo "Unpushed changes in $repo" fi