#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_AVAILABLE_PATH/git/functions"

case "$1" in
  git-hook)
    git_hook_cmd "$@"
    ;;

  git-upload-pack)
    git_upload_pack_cmd "$@"
    ;;

  git-*)
    git_glob_cmd "$@"
    ;;

  help | git:help)
    echo -n ""
    ;;

  *)
    exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
    ;;

esac
