unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: 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:34:51 +0100	[thread overview]
Message-ID: <87mtmanwxg.fsf@telefonica.net> (raw)
In-Reply-To: xm465ysy2v44.fsf@duenenhof-wilhelm.de

"H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:

>   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!

Did you reboot the machine since? Either reboot the machine or check
that you don't have any leftover running processes from the build.
Windows won't delete a file that is opened by a process, or a directory
that is the working directory of a process.

Exit any MSYS2, CMD or Emacs shell, launch the Task Manager and in the
Details pane look for instances of `make', `gcc', `sh', `bash', `cmd',
`git', etc. Kill those processes and try removing the problematic
file/folder from Windows Explorer.




  reply	other threads:[~2021-11-11 22:34 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
2021-11-11 22:34     ` Óscar Fuentes [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87mtmanwxg.fsf@telefonica.net \
    --to=ofv@wanadoo.es \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).