From 17a90ff3d27e50995ae399c2039c57f3754d5ec5 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Thu, 25 Aug 2022 09:48:02 +0200
Subject: [PATCH] Fetch before switching

---
 postinstall_partage.sh | 1 +
 postinstall_reseau.sh  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/postinstall_partage.sh b/postinstall_partage.sh
index 668c312..1ca2bb5 100755
--- a/postinstall_partage.sh
+++ b/postinstall_partage.sh
@@ -35,6 +35,7 @@ then
 else
     cd eole-wol
     git stash
+    git fetch
     git switch $branch
     git pull origin $branch
 fi
diff --git a/postinstall_reseau.sh b/postinstall_reseau.sh
index 2a526a9..a47a351 100755
--- a/postinstall_reseau.sh
+++ b/postinstall_reseau.sh
@@ -32,6 +32,7 @@ then
 else
     cd eole-wol
     git stash
+    git fetch
     git switch $branch
     git pull origin $branch
     cd -
-- 
GitLab