简体   繁体   English

git添加文件的大路径

[英]Big path on git add file

I tried add one of node.js module to git project. 我尝试将node.js模块之一添加到git项目中。 But add operation failed: 但是添加操作失败:

libgit2 returned: Invalid path for filesystem 'E:/Projects/vsteams/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-build/node_modules/decompress/node_modules/decompress-tar/node_modules/strip-dirs/node_modules/is-natural-number/is-natural-number-cjs.js': Data area passed to a system call is too small.

Is this windows problem or problem with libgit2 realization on windows (windows 7 by the way)? 这是Windows问题还是Windows上的libgit2实现问题(顺便说一句Windows 7)? It looked like problem with big system path (276 symbols). 大系统路径(276个符号)看起来像问题。 May be some sulution for this? 可能对此有所解决?

The message does indeed come from the path being too long for the Win32 calls we perform. 该消息确实来自路径,对于我们执行的Win32调用而言,路径太长。 libgit2 does not currently support long paths on Windows. libgit2当前在Windows上不支持长路径。 It may do so at some point, since git itself has set a precedent, but it likely won't be in the short term. 由于git本身已经树立了先例,因此它可能会在某个时候这样做,但它可能不会在短期内出现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM