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

Re: [Feature Request] Option to make .git not read-only in cloned repos

From
Michal Suchánek <msuchanek@suse.de>
Date
Aug 30, 2019, 18:26 UTC
Message-ID
<20190830202635.0bc7e14f@kitsune.suse.cz>
In-Reply-To
<xmqqd0gmzk0c.fsf@gitster-ct.c.googlers.com>

On Fri, 30 Aug 2019 09:38:11 -0700 Junio C Hamano <gitster@pobox.com> wrote:

Show 24 quoted lines
> Albert Vaca Cintora <albertvaka@gmail.com> writes:
> 
> > On Tue, Aug 27, 2019 at 9:35 PM Junio C Hamano <gitster@pobox.com> wrote:  
> >>
> >> Ah, your "rm" command needs to learn "-f" option, too, then?  
> >
> > The whole point of this thread was to remove the need of -f forcing the removal.  
> 
> OK, I misunderstood what you wanted to do.
> 
> If an implementation of Git were making everything under .git/
> read-only, including directories, then it is veriy much reasonable
> to complain against such an implementation.  The usual "I know I am
> doing something unusual and forcing it" safety given by "rm -rf" is
> not enough to remove such a clone, and user would need "chmod -R u+w"
> beforehand to be able to remove---that is being unreasonably paranoid
> in the name of protecting against mistakes.
> 
> But requiring an additional single "f" when doing "rm -rf .git"?  Is
> that realy too much of a hassle?  The option "-f" is to allow people
> deal with an unusual situation, while preventing everyday use from
> doing something harmful unintendedly.  And removing a cloned
> repository is an unusual situation that would not happen every day,
> no?
Not everyone's day. Some people's day, sure.

I am not in this situation so often but indeed I sometimes clone several repositories in a day to search for a patch or piece of code and then don't need them anymore. Some people may be in such situation more often or regularly.

That's why this request makes sense to me.
Thanks
Michal
Previous: Junio C HamanoNext: Junio C Hamano
Message 13 of 18 in “[Feature Request] Option to make .git not read-only in cloned repos”
  1. Albert Vaca CintoraAug 23, 2019
  2. Kevin DaudtAug 25, 2019
  3. Albert Vaca CintoraAug 25, 2019
  4. Johannes SixtAug 25, 2019
  5. Albert Vaca CintoraAug 25, 2019
  6. Philip OakleyAug 25, 2019
  7. Junio C HamanoAug 26, 2019
  8. Albert Vaca CintoraAug 26, 2019
  9. SZEDER GáborAug 26, 2019
  10. Junio C HamanoAug 27, 2019
  11. Albert Vaca CintoraAug 30, 2019
  12. Junio C HamanoAug 30, 2019
  13. Michal SuchánekAug 30, 2019
  14. Junio C HamanoAug 30, 2019
  15. Albert Vaca CintoraAug 31, 2019
  16. Randall S. BeckerAug 26, 2019
  17. Junio C HamanoAug 26, 2019
  18. Randall S. BeckerAug 26, 2019

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.