Files
2021-02-16 15:10:56 +09:00

10 lines
162 B
Bash

#!/bin/bash
if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
exit 1
fi
if [ "$(pwd)" != "$(git rev-parse --show-toplevel)" ]; then
exit 1
fi