]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sha1_file.c
path.c: make get_pathname() call sites return const char *
[thirdparty/git.git] / sha1_file.c
index d7f1838c13f5a88448d0f2034347bfb6482b3edf..1ed74f955fa66ab15790d5e634ceca43d416a4e4 100644 (file)
@@ -405,7 +405,7 @@ void add_to_alternates_file(const char *reference)
 {
        struct lock_file *lock = xcalloc(1, sizeof(struct lock_file));
        int fd = hold_lock_file_for_append(lock, git_path("objects/info/alternates"), LOCK_DIE_ON_ERROR);
-       char *alt = mkpath("%s\n", reference);
+       const char *alt = mkpath("%s\n", reference);
        write_or_die(fd, alt, strlen(alt));
        if (commit_lock_file(lock))
                die("could not close alternates file");