summary refs log tree commit diff stats
path: root/git-hooks/post-receive
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-01-23 22:24:17 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-01-23 22:24:17 -0300
commit8a116a774ae5cbbde1119d02894ea54f94e13234 (patch)
tree15463a1929aeb0bc3da36448fb3e59910c6750b4 /git-hooks/post-receive
parentb1ee8f84dd8bfafccf26457b9be2359774e02a3b (diff)
Skip processing "raw" files
Diffstat (limited to 'git-hooks/post-receive')
-rwxr-xr-xgit-hooks/post-receive4
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)