From e83280879b56f8b35f4046f03f72ec3203aad94b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 2 Oct 2021 12:29:38 +0200 Subject: ssg: Copy from branch without staging file --- bin/ssg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/ssg') diff --git a/bin/ssg b/bin/ssg index 904245b..f8da7c6 100755 --- a/bin/ssg +++ b/bin/ssg @@ -21,6 +21,8 @@ for src_file in ${src_files}; do __handle "${src_file}" done +# Copy images if git rev-parse media; then - git --work-tree="${out_dir}" checkout "${media_branch}" "${media_dir}" + git restore --source=media --worktree "img" + mv "img" "out" fi -- cgit v1.2.3