aboutsummaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-08-21 03:29:13 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-01-14 02:15:04 -0500
commitace4a9d1ae5efd056c5e57cc76aacee3057a73f7 (patch)
tree2bbf4f32c72989fa6dfb36a961952b97c1a5ba2e /fast-import.c
parentc90be46abdbd102ab8e9af0303d33976d552ae58 (diff)
downloadgit-ace4a9d1ae5efd056c5e57cc76aacee3057a73f7.tar.gz
git-ace4a9d1ae5efd056c5e57cc76aacee3057a73f7.tar.xz
Allow symlink blobs in trees during fast-import.
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>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fast-import.c b/fast-import.c
index d5651693b..7d1ee1dad 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -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 */