Git development
 help / color / mirror / Atom feed
* [PATCH] create subdirs for symlinks
@ 2005-05-05 23:34 Kay Sievers
  0 siblings, 0 replies; only message in thread
From: Kay Sievers @ 2005-05-05 23:34 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: git

We may need to create subdirectories, before we can create a
symlink.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
---

--- a/checkout-cache.c
+++ b/checkout-cache.c
@@ -96,6 +96,7 @@ static int write_entry(struct cache_entr
 	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)",


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-05 23:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-05 23:34 [PATCH] create subdirs for symlinks Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox