mirror of
https://github.com/git/git
synced 2024-09-13 21:34:42 +00:00
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>
This commit is contained in:
parent
c90be46abd
commit
ace4a9d1ae
|
@ -1017,6 +1017,7 @@ static void file_change_m(struct branch *b)
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case S_IFREG | 0644:
|
case S_IFREG | 0644:
|
||||||
case S_IFREG | 0755:
|
case S_IFREG | 0755:
|
||||||
|
case S_IFLNK:
|
||||||
case 0644:
|
case 0644:
|
||||||
case 0755:
|
case 0755:
|
||||||
/* ok */
|
/* ok */
|
||||||
|
|
Loading…
Reference in a new issue