From b0b24da79b6fcc1d2fc9a84cda8245218f32dba5 Mon Sep 17 00:00:00 2001
From: Damien Pollet <damien.pollet@univ-lille.fr>
Date: Fri, 23 Sep 2022 19:48:50 +0200
Subject: [PATCH] Properly create tracking worktree

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 60487cc..16afa08 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ all : $(OUT_MARKUP) $(OUT_OTHERS)
 
 prepare : $(OUT)
 	git fetch origin public
-	git worktree add $(OUT) public
+	git worktree add --track -B public $(OUT) origin/public
 
 wipe :
 	find $(OUT) -mindepth 1 -not -name '.git' -delete
-- 
GitLab