From d5f415e6f5c1f3930a4651c2804cd4e2205a79de Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 6 May 2005 01:34:10 +0200 Subject: [PATCH] [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 --- checkout-cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/checkout-cache.c b/checkout-cache.c index 367b9c799..244ebd122 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)", -- 2.30.2