From: Rafal Rusin Date: Sun, 22 Nov 2009 20:02:12 GMT Subject: 'error: unable to set permission to './objects/...' Message-ID: <9bbf67fa0911221202r605de38coc2496b1f09123725@mail.gmail.com> Hello, I'm hosting git repository on filesystem with 'chmod ' causing permission denied error (it's smbfs mounted directory), When I was doing push to such repo using file:// protocol, I got following error: error: unable to set permission to './objects/...' I did a small fix to sha1_file.c (patch in attachment) and git now warns when unable to chmod, and continues push. This resolved problem. What do you think about applying it? Regards, -- RafaƂ Rusin http://rrusin.blogspot.com http://www.touk.pl http://top.touk.pl diff --git a/sha1_file.c b/sha1_file.c index 4ea0b18..305e751 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -2272,8 +2272,9 @@ int move_temp_to_file(const char *tmpfile, const char *filename) } out: - if (set_shared_perm(filename, (S_IFREG|0444))) - return error("unable to set permission to '%s'", filename); + if (set_shared_perm(filename, (S_IFREG|0444))) { + warning("unable to set permission to '%s'", filename); + } return 0; }