Skip to content
suit Artifact [3a06704708]
Login

Artifact [3a06704708]

Artifact 3a0670470831f322a44af96f7432e186e5ce357378e9ef2ddca379479211e90c:


#!/bin/sh
# Rebuilds test/fixtures/wear.fossil with stock fossil: one check-in holding
# test/fixtures/wear/ as it is. The fixture is checked in; this only remakes it.
set -eu
here=$(cd "$(dirname "$0")/.." && pwd)
out=$here/test/fixtures/wear.fossil
work=$(mktemp -d "${TMPDIR:-/tmp}/suit-wear.XXXXXX")
trap 'rm -rf "$work"' EXIT INT TERM
rm -f "$out"
fossil new --admin-user fixture "$out" >/dev/null
mkdir "$work/co" && cd "$work/co"
fossil open "$out" >/dev/null
cp -R "$here/test/fixtures/wear/." .
fossil add . >/dev/null
fossil commit --user fixture -m "the User scope fixture" >/dev/null