threads / discuss / 36488

Git clone gives zero file permissions

Subject: Git clone gives zero file permissions

## tl;dr

2 messages between Apr 24, 2014 and Apr 24, 2014.

replies: 1people: 2as markdown or json

Jussi Peltonen· Apr 24, 2014, 08:24 UTC · lore
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· Apr 24, 2014, 10:18 UTC · re: Jussi Peltonen · lore

Re: Git clone gives zero file permissions

Am 4/24/2014 10:24, schrieb Jussi Peltonen:
Show 11 quoted lines
> 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

← back to recent threads