git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Permission denied ONLY after pulling bundles

From
RBRossella Barletta <rossella.barletta@gmail.com>
Date
Jun 8, 2015, 15:19 UTC
Message-ID
<CAJeiYQH2fK3EMXUV9Qrbf+19Dp1Ls0KR58DnJfEzKih6NUrO6Q@mail.gmail.com>
In-Reply-To
<CAEcj5uVQkeex=q_ssDYYo=jamYX-zdM2FvG61Kgzq-XDdzhtHQ@mail.gmail.com>
Dear Thomas,

Unfortunatly for me i cannot send the files, since there are restrictions, but thanks for your offer.

At the moment also configuring the repo with --shared=all is not helping, but i could try to reproduce the problem with a fake repo shared between windows and linux and see if i get the same error and at the point i will share the files

with you.
Thanks again.
Rossella
2015-06-08 15:03 GMT+02:00 Thomas Ferris Nicolaisen <tfnico@gmail.com>:
Show 54 quoted lines
> On Mon, Jun 8, 2015 at 10:47 AM, Rossella Barletta
> <rossella.barletta@gmail.com> wrote:
>>
>> So summarizing:
>>
>> 1)  Git repository (bare)  is on Windows on a shared folder
>> 2)  Clone of the repository is on Linux
>> 3) Clone of the repository is on windows
>> 4) I received a bundle made starting by a branch, i pull the bundle on
>> the same branch on Windows, i push the changes , everything ok
>> 5) I go on the clone on Linux, i pull the changes in the branch, make
>> some updates, push...but i get error message about permissions.
>>
>>
>>
>> 4-Alternative)  I received a bundle made starting by a branch, i pull
>> the bundle on the same branche on Linux, i push the changes ,
>> permission errors.
>>
>> The permissions of the files are all set to 777. It is not clear why
>> pushing (after pulling a bundle) on Linux gives permission problems.
>> Even thinking about the user, we have to take in account that before
>> pulling the bundle the same user was used and there was no problem
>> before.
>
> Just to quickly shoot in a thought: I've heard about some similar
> permission problems that occurred when setting up a bare repository
> (on a Linux system). They solved it by re-initializing the repository
> with --shared parameter.
>
> Looking what shared does in the documentation of git-init, the default
> is to use "umask" if --shared is "not specified". I'm not sure if even
> Windows has any sort of umask.. In any case, my wild guess is that
> some operations triggers the remote Git process/user to create new
> files (repack, gc, etc) that get restricted permissions on Windows.
>
> How do you set permissions to 777 on Windows? I didn't know Windows
> uses the same kind of permissions there.. Anyhow, is it possible for
> you to reset the permissions again so that the pushing works again
> (until the next bundle)? If you can do so, configure the bare
> repository to have --shared=all, and see if that helps.
>
> For more help, please share with us the following:
>
> * A complete zip of the bare repository where pushing still works
> (shared over Internet, not as email attachment)
> * The commands you are executing, and their complete output
> * A complete zip of the bare repository where pushing no longer works
> * The complete configuration of the Linux client where the push is
> failing (git config -l)
>
>
> Also noting that this seems to be cross-posted to StackOverflow:
> http://stackoverflow.com/questions/30500226/git-push-fatal-write-error-permission-denied-after-pulling-a-bundle
-- 
Rossella
Previous: Thomas Ferris Nicolaisen
Message 9 of 9 in “Permission denied ONLY after pulling bundles”
  1. Rossella BarlettaJun 4, 2015
  2. Christian CouderJun 4, 2015
  3. Philip OakleyJun 4, 2015
  4. Rossella BarlettaJun 5, 2015
  5. Christian CouderJun 5, 2015
  6. Rossella BarlettaJun 8, 2015
  7. Rossella BarlettaJun 8, 2015
  8. Thomas Ferris NicolaisenJun 8, 2015
  9. Rossella BarlettaJun 8, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.