libgit2/tests/scripts/run_tests.sh
2023-06-29 18:25:29 +02:00

17 lines
227 B
Bash
Executable File

#!/bin/bash
set -eux
make
if [ ! -e ~/.gitconfig ]; then
cat << EOF > ~/.gitconfig
[user]
name=test-user
email=test-email
EOF
fi
./init --initial-commit ./test-libgit2
pushd ./test-libgit2
../log | grep 'Initial commit'