diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-10-02 12:29:38 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-10-02 12:29:38 +0200 |
commit | e83280879b56f8b35f4046f03f72ec3203aad94b (patch) | |
tree | 869c60e5d96d79908701fef9dd9d34db9f826c5f /bin/ssg | |
parent | 1c0327ca885db8b7f31d5195705ccacfee569daa (diff) | |
download | rgoncalves.se-e83280879b56f8b35f4046f03f72ec3203aad94b.tar.gz |
ssg: Copy from branch without staging file
Diffstat (limited to 'bin/ssg')
-rwxr-xr-x | bin/ssg | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |