From: Nicolas Boisselier Date: Wed, 29 Nov 2023 00:30:16 +0000 (+0100) Subject: nb_repos_ls_files no warning if not the same git user X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=d863d52c1e4ee4760d5317220d93a8ae6dc02be9;p=nb.git nb_repos_ls_files no warning if not the same git user --- diff --git a/etc/profile.d/nb.sh b/etc/profile.d/nb.sh index 790d6c13..90b57608 100644 --- a/etc/profile.d/nb.sh +++ b/etc/profile.d/nb.sh @@ -155,7 +155,7 @@ nb_repos_grep() { nb_repos_ls_files() { nb_repos | while read r; do - git -C "$r" ls-files --full-name | while read i; do + git -C "$r" ls-files --full-name 2>/dev/null| while read i; do i="$r/$i" [ ! -e "$i" -o -d "$i" ] && continue echo $i