aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gistatic.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gistatic.c b/src/gistatic.c
index a2c9c14..bb89bed 100644
--- a/src/gistatic.c
+++ b/src/gistatic.c
@@ -1753,8 +1753,8 @@ static int repo_write_refs(
" </a>\n"
" </td>\n"
" <td>\n"
- " <a href=\"snapshots/%s-%s.tar.xz\">%s-%s.tar.xz</a>\n"
- " (<a href=\"snapshots/%s-%s.tar.xz.asc\">sig</a>)\n"
+ " <a href=\"tarballs/%s-%s.tar.xz\">%s-%s.tar.xz</a>\n"
+ " (<a href=\"tarballs/%s-%s.tar.xz.asc\">sig</a>)\n"
" </td>\n"
" <td>\n"
" %s\n"
@@ -1832,7 +1832,7 @@ cleanup:
return ret;
}
-static int repo_write_snapshots(
+static int repo_write_tarballs(
const char *const outdir,
struct git_repository *const repo,
const char *const project_name
@@ -1842,18 +1842,18 @@ static int repo_write_snapshots(
(void)outdir;
(void)repo;
(void)project_name;
- char *snapshots_dir = NULL;
+ char *tarballs_dir = NULL;
struct git_reference_iterator *ref_iter = NULL;
- if (!(snapshots_dir = strjoin(outdir, "/snapshots"))) {
+ if (!(tarballs_dir = strjoin(outdir, "/tarballs"))) {
ret = -1;
goto cleanup;
}
errno = 0;
- if (mkdir(snapshots_dir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)
+ if (mkdir(tarballs_dir, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)
&& errno != EEXIST) {
- logerrs("mkdir(\"", snapshots_dir, "\")", strerror(errno),
+ logerrs("mkdir(\"", tarballs_dir, "\")", strerror(errno),
__LINE__);
ret = EXIT_ERROR;
goto cleanup;
@@ -1901,7 +1901,7 @@ static int repo_write_snapshots(
cleanup:
git_reference_iterator_free(ref_iter);
- free(snapshots_dir);
+ free(tarballs_dir);
return ret;
}
@@ -2001,7 +2001,7 @@ static int repo_write(
if (
repo_write_refs(outdir, repo, encoded_name,
encoded_description, clone_url)
- || repo_write_snapshots(outdir, repo, encoded_name)
+ || repo_write_tarballs(outdir, repo, encoded_name)
) {
ret = -1;
goto cleanup;