diff --git a/stagit.c b/stagit.c
@@ -1015,7 +1015,7 @@ int writefilestree(FILE *fp, git_tree *tree, const char *path)
entrypath);
if (r < 0 || (size_t)r >= sizeof(filepath))
errx(1, "path truncated: 'file/%s.html'", entrypath);
- r = snprintf(blobpath, sizeof(filepath), "path/%s.html",
+ r = snprintf(blobpath, sizeof(filepath), "blob/%s.html",
entrypath);
if (r < 0 || (size_t)r >= sizeof(filepath))
errx(1, "path truncated: 'file/%s.html'", entrypath);