{"thread":{"id":"54882","subject":"Read-only access to an \"objects/info/alternates\" repository","startedAt":"2020-12-25T21:57:27Z","lastAt":"2020-12-25T21:57:27Z","messageCount":1,"participants":["Stefan Monnier"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"413014","messageId":"jwvmty1pnm9.fsf-monnier+emacs@gnu.org","threadId":"54882","inReplyTo":null,"subject":"Read-only access to an \"objects/info/alternates\" repository","fromName":"Stefan Monnier","fromEmail":"monnier@iro.umontreal.ca","sentAt":"2020-12-25T21:47:00Z","receivedAt":"2020-12-25T21:57:27Z","isPatch":false,"sender":{"key":"monnier@iro.umontreal.ca","avatar":null},"body":"Thank you for filling out a Git bug report!\nPlease answer the following questions to help us understand your issue.\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n\nI did basically:\n\n    git clone --reference ~otheruser/nongnu\n    [ Days passed and I did various things.  ]\n    cd nongnu; git gc\n\nNote that `otheruser` is [..wait for it..] another user, so I only have\nread access to the referenced repository.\n\nWhat did you expect to happen? (Expected behavior)\n\nThat it would GC the local part of the repository and that it wouldn't\ntry to modify the referenced repository.\n\nWhat happened instead? (Actual behavior)\n\nI got warnings indicating that Git was trying to delete files from\nthe referenced repository:\n\n    Enumerating objects: 35095, done.\n    Nothing new to pack.\n    warning: unable to unlink '/home/otheruser/nongnu/.git/objects/pack/pack-0d85e74ac2f7e51ce26f281e64eb738e8182fa95.idx': Permission denied\n    warning: unable to unlink '/home/otheruser/nongnu/.git/objects/pack/pack-5fe14feff49ccdee5469af9dc94f6784e8464a6b.idx': Permission denied\n\nWhat's different between what you expected and what actually happened?\n\nThe warnings.\n\nAnything else you want to add:\n\nThe warnings make me wonder if I should worry about other possible\nmisbehaviors when using such a setup.\n\nPlease review the rest of the bug report below.\nYou can delete any lines you don't wish to share.\n\n\n[System Info]\ngit version:\ngit version 2.29.2\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64\ncompiler info: gnuc: 10.2\nlibc info: glibc: 2.28\n$SHELL (typically, interactive shell): /bin/bash\n\n\n[Enabled Hooks]\n\n"}]}