{% if dvc_config_ok is true %}#!/bin/sh
# Copyright (C) <2018-2022>  <Agence Data Services, DSI Pôle Emploi>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
# Execution hook dvc if available
if command -v dvc &> /dev/null
then
	echo -e "[DVC] - Execution hook 'post-checkout'\n"
	exec dvc git-hook post-checkout $@
else
	echo -e "[DVC] - Warning the command 'dvc' is unavailable. Skip DVC. \n"
fi
{% endif %}
