threads / discuss / 34176

RE: GIt error

Subject: RE: GIt error

## tl;dr

4 messages between Jun 17, 2013 and Jun 17, 2013.

replies: 3people: 3as markdown or json

justin.sathyanathan@accenture.com· Jun 17, 2013, 13:28 UTC · lore

Hi, For Below issue , O/S is Windows7.

Regards,
Justin,
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sun Certified Enterprise Architect for Java EE platform | Certified TA | Java Capability | Accenture- India Delivery Center
AIM: justinsprabhu| +91-80-40771095 (w)|+91-9611804388 (m)
https://collaboration.accenture.com/javaportal | https://aal.accenture.com
-----Original Message-----
From: Sathyanathan, Justin
Sent: Monday, June 17, 2013 6:51 PM
To: 'git@vger.kernel.org'
Subject: RE: GIt error
Hi,
1.Iam getting error attached when cloning of repository is done:
2.Also, when file is tried to be added,it gives error below:

$ git add * fatal: unable to stat 'src/development_architecture/integration_application_proj ect_template/provider_archetype/provider_archetype/src/main/resources/archetype- resources/__rootArtifactId__-data/src/main/java/com/accenture/afpj/sample/skelet on/visitor/data/VisitorRepositoryJpaImpl.java': Filename too long

Request you to help to resolve same asap as it is affecting the project.
Regards,
Justin,
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sun Certified Enterprise Architect for Java EE platform | Certified TA | Java Capability | Accenture- India Delivery Center
AIM: justinsprabhu| +91-9611804388 (m)
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited.
Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________
www.accenture.com
Fredrik Gustafsson· Jun 17, 2013, 13:37 UTC · re: justin.sathyanathan@accenture.com · lore

Re: GIt error

On Mon, Jun 17, 2013 at 01:28:30PM +0000, justin.sathyanathan@accenture.com wrote:
> 1.Iam getting error attached when cloning of repository is done:
What error?
Show 7 quoted lines
> 2.Also, when file is tried to be added,it gives error below:
> 
> $ git add *
> fatal: unable to stat 'src/development_architecture/integration_application_proj
> ect_template/provider_archetype/provider_archetype/src/main/resources/archetype-
> resources/__rootArtifactId__-data/src/main/java/com/accenture/afpj/sample/skelet
> on/visitor/data/VisitorRepositoryJpaImpl.java': Filename too long

As it said, filename is too long. See the FAQ: https://github.com/msysgit/msysgit/wiki/Frequently-Asked-Questions and the thread: http://thread.gmane.org/gmane.comp.version-control.msysgit/14572

> Request you to help to resolve same asap as it is affecting the project.

If you want reliable and direct help I suggest you hire a git-consult or buy support. This list will help you in the best way it can (and mostly that's enough) but cannot do things "asap".

-- 
Med vänliga hälsningar
Fredrik Gustafsson

tel: 0733-608274
e-post: iveqy@iveqy.com
Konstantin Khomoutov· Jun 17, 2013, 13:47 UTC · re: justin.sathyanathan@accenture.com · lore

Re: GIt error

On Mon, 17 Jun 2013 13:28:30 +0000 <justin.sathyanathan@accenture.com> wrote:

> For Below issue , O/S is Windows7.
[...]
> 1.Iam getting error attached when cloning of repository is done:
What error?
Show 8 quoted lines
> 2.Also, when file is tried to be added,it gives error below:
> 
> $ git add *
> fatal: unable to stat
> 'src/development_architecture/integration_application_proj
> ect_template/provider_archetype/provider_archetype/src/main/resources/archetype-
> resources/__rootArtifactId__-data/src/main/java/com/accenture/afpj/sample/skelet
> on/visitor/data/VisitorRepositoryJpaImpl.java': Filename too long
[...]

This is a limitation of Git for Windows: the standard Windows API which works with unmangled filenames limits their length to 260 characters while your particular entry is 262 characters long.

AFAIK, there's no clean/easy way to make use of "extended" Windows API which requires mangling filenames by adding the "\\?\" to them.

You could read [1] for more details.
So it seems you have two options for now:
* Restructure the project.
* Use Git under Cygwin [2] which might not have this limitation
  (personally, I do not know whether it does).
P.S.
Please next time you ask consider doing two things:
* If you post your message to several groups, take care to mention this
  fact in each of them.
* Do not require anyone to do anything "ASAP" unless this claim is
  backed by your or your employer's wallet.
1. http://msdn.microsoft.com/en-us/library/aa365247#maxpath
2. http://cygwin.com/packages/git/
Konstantin Khomoutov· Jun 17, 2013, 13:52 UTC · re: Konstantin Khomoutov · lore

Re: GIt error

On Mon, 17 Jun 2013 17:47:07 +0400 Konstantin Khomoutov <kostix+git@007spb.ru> wrote:

> > For Below issue , O/S is Windows7.
> > 1.Iam getting error attached when cloning of repository is done:
> 
> What error?

Okay, the Microsoft Word document with two screenshots has been scrubbed by the list software but passed through the git-users list where you posted this as well; answering here.

The errors shown there most probably has the same nature: Git failed to create a filesystem entry while attempting to check out a revision after cloning the project. So the error is not about cloning, it's about checking out actual files to the work tree.

The rest is explained in my first reply.
[...]

← back to recent threads