# Test commands with the --ignore-dirty-git argument
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: test -d scripts/packages/bar
# @TEST-EXEC: test -f dirty-test.bundle

CONFIG=$(pwd)/config

echo "# testing dirty git repos" >> ./packages/bar/zkg.meta

zkg --config=$CONFIG test --ignore-dirty-git ./packages/bar
zkg --config=$CONFIG install --force --ignore-dirty-git ./packages/bar

echo "[bundle]" > ./bundle-manifest
echo "./packages/bar=HEAD" >> ./bundle-manifest

zkg --config=$CONFIG bundle --force --ignore-dirty-git --manifest ./bundle-manifest -- dirty-test.bundle
