From d863d52c1e4ee4760d5317220d93a8ae6dc02be9 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 29 Nov 2023 01:30:16 +0100 Subject: [PATCH] nb_repos_ls_files no warning if not the same git user --- etc/profile.d/nb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3