feat: disable the fbackup, finit, fupgrade when using -g, --git flag

pull/21/head
Kevin Zhuang 4 years ago
parent 1e4356bc8c
commit b063865001

@ -83,7 +83,15 @@ case "$1" in
DOTBARE_TREE=$(git rev-parse --show-toplevel)
DOTBARE_DIR="${DOTBARE_TREE}/.git"
shift
execute_dotbare "$@"
case "$1" in
fbackup|finit|fupgrade)
echo "dotbare $1 is not supported when using dotbare as a generic fuzzy git tool"
exit 1
;;
*)
execute_dotbare "$@"
;;
esac
else
echo "Not in a git directory"
exit 1

Loading…
Cancel
Save