From 8a116a774ae5cbbde1119d02894ea54f94e13234 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sun, 23 Jan 2022 22:24:17 -0300 Subject: Skip processing "raw" files --- git-hooks/post-receive | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'git-hooks/post-receive') diff --git a/git-hooks/post-receive b/git-hooks/post-receive index 6b8d317..10c3e86 100755 --- a/git-hooks/post-receive +++ b/git-hooks/post-receive @@ -305,7 +305,9 @@ print("generating blobs") while todoblobs: (b, meta) = todoblobs.popitem() path = gen_dir / "blobs" / str(b.id) + rawpath = build_dir / "blobs" / str(b.id) path.mkdir(parents=True,exist_ok=True) + rawpath.mkdir(parents=True,exist_ok=True) index = path / "index.html" try: f = index.open("x") @@ -326,7 +328,7 @@ while todoblobs: except UnicodeError: pass f.write("") - raw = path / "raw.bin" + raw = rawpath / "raw.bin" with raw.open("wb") as f: f.write(b) -- cgit 1.4.1