diff options
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/post-receive | 4 |
1 files changed, 3 insertions, 1 deletions
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("</body></html>") - raw = path / "raw.bin" + raw = rawpath / "raw.bin" with raw.open("wb") as f: f.write(b) |