From 5dc13100d0538e06c456c972246622a16a4c8ceb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Loi=CC=88c=20Correnson?= <loic.correnson@cea.fr>
Date: Mon, 17 Jul 2023 10:24:49 +0200
Subject: [PATCH] [bin/git.sh] fixed TARGET cd

---
 bin/git.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/git.sh b/bin/git.sh
index 4ca956481af..c9b9544c28c 100755
--- a/bin/git.sh
+++ b/bin/git.sh
@@ -136,7 +136,7 @@ do
     echo "-- Repository $plugin"
     echo "--------------------------------------------------"
 
-    if [ -f $TARGET ]
+    if [ "$TARGET" != "" ] && [ -f $TARGET ]
     then
         cd $plugin
         if [ "$TARGET" != "" ]
-- 
GitLab