From e53a930b8cbcefcdef20676a8533171afd0a5e04 Mon Sep 17 00:00:00 2001 From: Benjamin Gandon Date: Tue, 13 Feb 2024 02:50:13 +0100 Subject: [PATCH] Add support for repos using Git-LFS --- tasks/git/commit.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/git/commit.sh b/tasks/git/commit.sh index e786f6d..14c71df 100755 --- a/tasks/git/commit.sh +++ b/tasks/git/commit.sh @@ -18,6 +18,9 @@ find "repo" -mindepth 1 -maxdepth 1 -print0 \ | xargs -0 -I{} cp -a {} "repo-committed" pushd "repo-committed" > /dev/null + if [[ -f ".gitattributes" ]] && grep -qF "lfs" ".gitattributes"; then + git lfs install + fi git config "color.ui" "always" git status git diff ${GIT_DIFF_OPTS} | cat