From: Kay Sievers Date: Thu, 5 May 2005 23:34:10 +0000 (+0200) Subject: [PATCH] create subdirs for symlinks X-Git-Tag: v0.99~635 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d5f415e6f5c1f3930a4651c2804cd4e2205a79de;p=git.git [PATCH] create subdirs for symlinks We may need to create subdirectories, before we can create a symlink. Signed-off-by: Kay Sievers Signed-off-by: Linus Torvalds --- diff --git a/checkout-cache.c b/checkout-cache.c index 367b9c79..244ebd12 100644 --- a/checkout-cache.c +++ b/checkout-cache.c @@ -96,6 +96,7 @@ static int write_entry(struct cache_entry *ce, const char *path) case S_IFLNK: memcpy(target, new, size); target[size] = '\0'; + create_directories(path); if (symlink(target, path)) { free(new); return error("checkout-cache: unable to create symlink %s (%s)",