#!/bin/sh
TMP="${AUTOPKGTEST_TMP:-.}/tests/build-pages"

git config --global init.defaultBranch main
git config --global user.email test@example.invalid
git config --global user.name Test

set -e
rm -rf "$TMP"
mkdir -p "$TMP"
cd "$TMP"
mkdir repo

cd "$TMP/repo"
git init
echo Hello > README
git add README
git commit -m'Initial commit'

cd "$TMP"
mkdir html
cd "$TMP/html"
stagit ../repo

test -e atom.xml
test -e tags.xml
test -e files.html
test -e log.html
test -e refs.html
test -e file/README.html
