From 875524c952bc0846ddf70bfa9104a18369877ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek?= Date: Tue, 26 Jul 2022 20:13:04 +0200 Subject: [PATCH] Fix .laminar script, generate example repos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Václav Valíček --- .laminar | 1 - tests/_support_data/.gitignore | 2 ++ tests/_support_data/gen-data.sh | 16 +++++++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 tests/_support_data/.gitignore diff --git a/.laminar b/.laminar index d23edbc..a7976dd 100755 --- a/.laminar +++ b/.laminar @@ -1,4 +1,3 @@ - echo un: $uninitialized #!/bin/bash set -euo pipefail IFS=$'\n\t' diff --git a/tests/_support_data/.gitignore b/tests/_support_data/.gitignore new file mode 100644 index 0000000..94e3051 --- /dev/null +++ b/tests/_support_data/.gitignore @@ -0,0 +1,2 @@ +tool_repos + diff --git a/tests/_support_data/gen-data.sh b/tests/_support_data/gen-data.sh index 5211726..396721e 100755 --- a/tests/_support_data/gen-data.sh +++ b/tests/_support_data/gen-data.sh @@ -1,2 +1,16 @@ #!/bin/bash -echo TODO: add some support data + +new_pwd=$(dirname $(realpath $0)) +cd $new_pwd + +# remove old data, if exists +if [ -d "tool_repos" ] +then + echo "Removing old tool_repos" + rm -Rf "tool_repos" + fi + +echo "Initializing tool_repos" +mkdir -p tool_repos/uninitialized.git +git init --bare tool_repos/initialized.git +