Skip to contentSkip to conversation

create subdirs for symlinks

PATCH New Kay Sievers 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 create subdirs for symlinks

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

---

checkout-cache.c +1 -0
@@ -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)",