diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2005-05-06 01:34:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-05 16:51:46 -0700 |
commit | d5f415e6f5c1f3930a4651c2804cd4e2205a79de (patch) | |
tree | 73e4e31bece1d023ad57580c2dde010410ee97c0 /checkout-cache.c | |
parent | 42ea9cb286423c949d42ad33823a5221182f84bf (diff) | |
download | git-d5f415e6f5c1f3930a4651c2804cd4e2205a79de.tar.gz |
[PATCH] create subdirs for symlinks
We may need to create subdirectories, before we can create a
symlink.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'checkout-cache.c')
-rw-r--r-- | checkout-cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/checkout-cache.c b/checkout-cache.c index 367b9c7991..244ebd1226 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)", |