From a8e22fd8ee71f8f8c586c757f9856d0faf477663 Mon Sep 17 00:00:00 2001
From: Mirek Kratochvil <miroslav.kratochvil@uni.lu>
Date: Mon, 7 Feb 2022 11:21:02 +0100
Subject: [PATCH] checkout with git, not cp

---
 cobrexa.def | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cobrexa.def b/cobrexa.def
index b04fcc671..54b376f8b 100644
--- a/cobrexa.def
+++ b/cobrexa.def
@@ -2,7 +2,7 @@ Bootstrap: library
 From: cylon-x/lcsb-biocore/julia-base:latest
 
 %setup
-    cp -a `pwd` ${SINGULARITY_ROOTFS}/project/
+    GIT_DIR=`pwd`/.git GIT_WORK_TREE=${SINGULARITY_ROOTFS}/project/ git checkout -f
 
 %post
     export JULIA_DEPOT_PATH=/user/.julia
-- 
GitLab