why git fast-import file modes are hardcoded?
问题 I'm trying to convert my CVS repository into GIT and I faced with strange issue: git fast-import has hardcoded file modes 100755 and 100644, otherwise it dies. source: p = get_mode(p, &mode); if (!p) die("Corrupt mode: %s", command_buf.buf); switch (mode) { case 0644: case 0755: mode |= S_IFREG; case S_IFREG | 0644: case S_IFREG | 0755: case S_IFLNK: case S_IFDIR: case S_IFGITLINK: /* ok */ break; default: die("Corrupt mode: %s", command_buf.buf); } // https://github.com/git/git/blob/master