Code

Allow symlink blobs in trees during fast-import.
authorShawn O. Pearce <spearce@spearce.org>
Mon, 21 Aug 2006 07:29:13 +0000 (03:29 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 14 Jan 2007 07:15:04 +0000 (02:15 -0500)
If a frontend is smart enough to import a symlink then we should
let them do so.  We'll assume that they were smart enough to first
generate a blob to hold the link target, as that's how symlinks
get represented in GIT.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c

index d5651693ba5e48c980c4eb3854480234f2e536ce..7d1ee1dad977f6ce3aef7d6879fffa19f6f1c410 100644 (file)
@@ -1017,6 +1017,7 @@ static void file_change_m(struct branch *b)
        switch (mode) {
        case S_IFREG | 0644:
        case S_IFREG | 0755:
+       case S_IFLNK:
        case 0644:
        case 0755:
                /* ok */