all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Windows10 with MSYS2 shell: Can't erase directories from Emacs' git repo tree
Date: Thu, 11 Nov 2021 23:19:39 +0100	[thread overview]
Message-ID: <xm465ysy2v44.fsf@duenenhof-wilhelm.de> (raw)
In-Reply-To: <83h7ck4rp5.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 Nov 2021 05:25:58 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
>> Date: Tue, 09 Nov 2021 22:27:42 +0100
>> 
>> I created a git clone of the sources, added some worktrees, changed the
>> contents of one file.  And decided to start anew but now I can't delete
>> all folders of the repo, Windows says I would need admin rights to
>> remove the remaining folders!  (The files in the tree are gone but not
>> all folders.)  When I'm looking at the properties of the remaining
>> folders it says they are all write protected and nobody is allowed to
>> remove the folders!  It seems the only thing I can do it to rename these
>> folders.
>> 
>> Is this a known problem with Windows10?
>
> No.  But you didn't describe what you tried to do in enough detail to
> understand what could be the problem in your case.  Please add a more
> detailed description, including which folders cause the problem.


  git
   - master
      - admin
         - nt
            - dist-build

I had a complete Emacs branch under master/, created by git worktree,
changed one file under dist-build/ (without comitting).  Then I wanted
to get rid of the complete repository and tried to erase the git/
folder.  I can't remember if I tried it first in dired (likely) or in
the MSYS2 shell.

All files and some folders are removed, only the folders which were
leading to the changed file are intact but I can't remove any of these
remaining folders!

> Also, what is your Windows user? is it, per chance, Administrator?

I don't know how to tell with Windows and this is a company machine.
I'm able to install programs but I'm not an IT admin.  I heard that our
IT guys were talking about "Open User" rights but I don't know if that
is a proper term or what that means.

> What does Emacs say about the owner and the group of those problematic
> folders?

I can only tell what dired shows, is there another way in Emacs?.  Dired
shows that I'm owner and that the folders belong to the group I'm member
of.  That is the same as the MSYS shell says.

When I'm looking at the folder properties, Windows tells me that they
are Read-only.  I can change this property but after reopening the
attributes they are again? read-only.  The only thing I can do is to
rename the folders...

Thank you for interest

      Dieter



  reply	other threads:[~2021-11-11 22:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-09 21:27 Windows10 with MSYS2 shell: Can't erase directories from Emacs' git repo tree H. Dieter Wilhelm
2021-11-10  3:25 ` Eli Zaretskii
2021-11-11 22:19   ` H. Dieter Wilhelm [this message]
2021-11-11 22:34     ` Óscar Fuentes
2021-11-12  6:55       ` H. Dieter Wilhelm
2021-11-11 14:08 ` Phillip Lord
2021-11-12  6:50   ` Windows10 VM installation: " H. Dieter Wilhelm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xm465ysy2v44.fsf@duenenhof-wilhelm.de \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.