repo-cloner/tests/_support_data/gen-data.sh

17 lines
291 B
Bash
Raw Normal View History

#!/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