From: Erik Johnson <palehose@gmail.com>
To: git@vger.kernel.org
Subject: git branch doesn't allow me to forcibly delete branch which was checked out in a now-deleted worktree dir
Date: Thu, 7 Jul 2016 13:44:08 -0500 [thread overview]
Message-ID: <20160707184408.GA1916@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 717 bytes --]
% git branch -D archive-extracted-xz
error: Cannot delete branch 'archive-extracted-xz' checked out at '/home/erik/git/salt/archive-extracted-xz'
% test -d /home/erik/git/salt/archive-extracted-xz || echo "directory doesn't exist"
directory doesn't exist
% git --version
git version 2.9.0
I know that I can just get rid of this error by pruning the worktrees,
but this still seems like incorrect behavior on the part of git branch.
It shouldn't be telling me that the branch is checked out in a directory
that does not exist, that is just factually incorrect.
--
-Erik
"For me, it is far better to grasp the universe as it really is than to
persist in delusion, however satisfying and reassuring." --Carl Sagan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next reply other threads:[~2016-07-07 18:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-07 18:44 Erik Johnson [this message]
2016-07-07 23:39 ` git branch doesn't allow me to forcibly delete branch which was checked out in a now-deleted worktree dir Jacob Keller
2016-07-08 0:36 ` Erik Johnson
2016-07-09 0:41 ` Jacob Keller
2016-07-09 2:22 ` Erik Johnson
2016-07-09 4:58 ` Jacob Keller
2016-07-09 5:05 ` Erik Johnson
2016-07-09 5:33 ` Duy Nguyen
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=20160707184408.GA1916@gmail.com \
--to=palehose@gmail.com \
--cc=git@vger.kernel.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 NNTP newsgroup(s).