# Git clone gives zero file permissions

2 messages from 2014-04-24 to 2014-04-24. Participants: Jussi Peltonen, Johannes Sixt.
Thread: https://gitlist.dev/t/36488

## Jussi Peltonen, 2014-04-24 08:24

Subject: Git clone gives zero file permissions
Message-ID: <CACDOErWqjihSYi4r6r8cjfFcbWe+7H0Tihjmkn18Y-szn7cE2g@mail.gmail.com>
URL: https://gitlist.dev/e/CACDOErWqjihSYi4r6r8cjfFcbWe%2B7H0Tihjmkn18Y-szn7cE2g%40mail.gmail.com

```
Hello,

I installed git to my Windows 7 workstation and cloned
"http://git.ipxe.org/ipxe.git" by using the Git GUI.

ipxe-23042014/src tree looks like this in Cygwin bash:

d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 arch
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 bin
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 config
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 core
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 crypto
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 doc
----------+ 1 peltoju Domain Users 62631 Apr 23 09:00 doxygen.cfg
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 drivers
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 hci
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 image
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 include
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 interface
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 libgcc
----------+ 1 peltoju Domain Users  6146 Apr 23 09:00 Makefile
----------+ 1 peltoju Domain Users 38982 Apr 23 09:00 Makefile.housekeeping
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 net
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 tests
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 usr
d---------+ 1 peltoju Domain Users     0 Apr 23 09:00 util

Files have no permissions, same goes with subfolders, e.g.

$ ls -l config/
total 47
----------+ 1 peltoju Domain Users  699 Apr 23 09:00 colour.h
----------+ 1 peltoju Domain Users 6961 Apr 23 09:00 config.c
----------+ 1 peltoju Domain Users  518 Apr 23 09:00 config_ethernet.c
----------+ 1 peltoju Domain Users  584 Apr 23 09:00 config_fc.c
----------+ 1 peltoju Domain Users  474 Apr 23 09:00 config_infiniband.c
----------+ 1 peltoju Domain Users  875 Apr 23 09:00 config_net80211.c
----------+ 1 peltoju Domain Users  478 Apr 23 09:00 config_romprefix.c
----------+ 1 peltoju Domain Users  555 Apr 23 09:00 config_route.c

Any explanation available?


git-gui version 0.19.GITGUI
git version 1.9.0.msysgit.0

- Jussi Peltonen

```

## Johannes Sixt, 2014-04-24 10:18

Subject: Re: Git clone gives zero file permissions
Message-ID: <5358E509.7070306@viscovery.net>
URL: https://gitlist.dev/e/5358E509.7070306%40viscovery.net
In-Reply-To: <CACDOErWqjihSYi4r6r8cjfFcbWe+7H0Tihjmkn18Y-szn7cE2g@mail.gmail.com>

```
Am 4/24/2014 10:24, schrieb Jussi Peltonen:
> I installed git to my Windows 7 workstation and cloned
> "http://git.ipxe.org/ipxe.git" by using the Git GUI.
> 
> ipxe-23042014/src tree looks like this in Cygwin bash:
> 
> Files have no permissions, same goes with subfolders, e.g.
> 
> $ ls -l config/
> total 47
> ----------+ 1 peltoju Domain Users  699 Apr 23 09:00 colour.h
> ...

If that's the only problem, then I'd say: don't use Cygwin's ls to look at
these files ;-)

So, really, what is the problem? You are using:

> git-gui version 0.19.GITGUI
> git version 1.9.0.msysgit.0

This doesn't look like Cygwin's git. That there are some discrepancies in
the result produced by Git for Windows is not surprising (but I'm not
saying "is expected").

-- Hannes

```
