diff --git a/stagit.c b/stagit.c
@@ -510,15 +510,12 @@ ssize_t writeblobraw(const git_blob *blob, const char *fpath)
if (mkdirp(d))
return -1;
- printf("open file: %s\n", fpath);
int fd = open(fpath, O_CREAT | O_RDWR);
if (fd == -1) return -1;
- printf("b\n");
int len = git_blob_rawsize(blob);
const void *s = git_blob_rawcontent(blob);
size_t size = write(fd, s, len);
- printf("wrote %d bytes to %s\n", size, fpath);
close(fd);
return size;
@@ -1015,7 +1012,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), "blob/%s.html",
+ r = snprintf(blobpath, sizeof(filepath), "blob/%s",
entrypath);
if (r < 0 || (size_t)r >= sizeof(filepath))
errx(1, "path truncated: 'file/%s.html'", entrypath);