git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git branch doesn't allow me to forcibly delete branch which was checked out in a now-deleted worktree dir
@ 2016-07-07 18:44 Erik Johnson
  2016-07-07 23:39 ` Jacob Keller
  2016-07-09  5:33 ` Duy Nguyen
  0 siblings, 2 replies; 8+ messages in thread
From: Erik Johnson @ 2016-07-07 18:44 UTC (permalink / raw)
  To: git

[-- 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 --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-07-09  5:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-07 18:44 git branch doesn't allow me to forcibly delete branch which was checked out in a now-deleted worktree dir Erik Johnson
2016-07-07 23:39 ` 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

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).