repo-cloner/tests/_support_data/gen-data.sh
Václav Valíček c196e33b4b
Repo clone test
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
2022-07-26 22:04:51 +02:00

18 lines
325 B
Bash
Executable File

#!/bin/bash
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
git init tool_repos/non-bare-init