diff options
author | Junio C Hamano <junkio@cox.net> | 2005-07-06 01:11:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-06 10:39:58 -0700 |
commit | b2cb94254be7bf8b44c851897dd29a00ce654e3c (patch) | |
tree | 350b5b896310eb41ce6786176727a1bc22ef2350 /cache.h | |
parent | ff9206e72c71aa2e51c7cbee911f47b5838a5845 (diff) | |
download | git-b2cb94254be7bf8b44c851897dd29a00ce654e3c.tar.gz |
[PATCH] clone-pack.c:write_one_ref() - Create leading directories.
The function write_one_ref() is passed the list of refs received
from the other end, which was obtained by directory traversal
under $GIT_DIR/refs; this can contain paths other than what
git-init-db prepares and would fail to clone when there is
such.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -161,6 +161,8 @@ extern void rollback_index_file(struct cache_file *); extern char *git_path(const char *fmt, ...); extern char *sha1_file_name(const unsigned char *sha1); +int safe_create_leading_directories(char *path); + /* Read and unpack a sha1 file into memory, write memory to a sha1 file */ extern void * map_sha1_file(const unsigned char *sha1, unsigned long *size); extern int unpack_sha1_header(z_stream *stream, void *map, unsigned long mapsize, void *buffer, unsigned long size); |