public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* The new permission system and git
@ 2015-06-22 15:31 Lemke, Michael  ST/HZA-ZIC2
  2015-06-22 17:15 ` [cygwin] " Jason Pyeron
  0 siblings, 1 reply; 2+ messages in thread
From: Lemke, Michael  ST/HZA-ZIC2 @ 2015-06-22 15:31 UTC (permalink / raw)
  To: cygwin

Sorry to say this but everywhere I use cygwin (work, home) these days
I run into trouble with the new permission system initially introduced 
at 1.7.35 IIRC.  I just did this:

$ cd //some/server
$ git init .
$ git add statistik
$ git commit
error: invalid object 040000 ab9e237892aceba0cb7447b290bdcc7437967918 for 'statistik'
error: Error building trees
$

But:
$ ls -ls .git/objects/ab/9e237892aceba0cb7447b290bdcc7437967918
4 -r--rwxr--+ 1 Administrators INA-DE01+Domain Users 365 Jun 22 16:59 .git/objects/ab/9e237892aceba0cb7447b290bdcc7437967918

Mounting the whole server directory noacl doesn't help.  The only change
is that vi doesn't complain that I am editing a readonly file when saving
the commit message.

On Stackoverflow I found a workaround (http://stackoverflow.com/questions/6866913/git-commit-on-windows-cygwin-is-broken)

$ git config --add core.createobject rename


Thanks,
Michael

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [cygwin] The new permission system and git
  2015-06-22 15:31 The new permission system and git Lemke, Michael  ST/HZA-ZIC2
@ 2015-06-22 17:15 ` Jason Pyeron
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Pyeron @ 2015-06-22 17:15 UTC (permalink / raw)
  To: cygwin

> -----Original Message-----
> From: Lemke, Michael 
> Sent: Monday, June 22, 2015 11:31 AM
> 
> Sorry to say this but everywhere I use cygwin (work, home) 
> these days I run into trouble with the new permission system 
> initially introduced at 1.7.35 IIRC.  I just did this:
> 
> $ cd //some/server

I have seen this before, please confirm all works on local drives (not
mapped / UNC). If so can you please try with this version of git:
https://github.com/pdinc-oss/git/tree/cygwin-issue-remoteCIFS-rename ?

From thread: https://www.cygwin.com/ml/cygwin/2014-12/msg00096.html

> $ git init .
> $ git add statistik
> $ git commit
> error: invalid object 040000 
> ab9e237892aceba0cb7447b290bdcc7437967918 for 'statistik'
> error: Error building trees
> $
> 
> But:
> $ ls -ls .git/objects/ab/9e237892aceba0cb7447b290bdcc7437967918
> 4 -r--rwxr--+ 1 Administrators INA-DE01+Domain Users 365 Jun 
> 22 16:59 .git/objects/ab/9e237892aceba0cb7447b290bdcc7437967918
> 
> Mounting the whole server directory noacl doesn't help.  The 
> only change is that vi doesn't complain that I am editing a 
> readonly file when saving the commit message.
> 
> On Stackoverflow I found a workaround 
>
(http://stackoverflow.com/questions/6866913/git-commit-on-windows-cygwin-is-
broken)
> 
> $ git config --add core.createobject rename

Glad to see that it has been merged in. This is the proper solution for
repos on UNC.

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-22 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-22 15:31 The new permission system and git Lemke, Michael  ST/HZA-ZIC2
2015-06-22 17:15 ` [cygwin] " Jason Pyeron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).