chiark / gitweb /
Let some commands work with detached HEAD
authorKarl Hasselström <kha@treskal.com>
Mon, 8 Oct 2007 03:52:06 +0000 (05:52 +0200)
committerKarl Hasselström <kha@treskal.com>
Thu, 8 Nov 2007 08:57:49 +0000 (09:57 +0100)
commitd96796efbad18a2b877002a9bd4fc667d856259f
tree762eca012320c8b94fcff88ca0e7a39f968c6f59
parent3efc7fd5c2f59af5a1aba0c1b12b8baee454223a
Let some commands work with detached HEAD

add, resolved, and status didn't use the crt_series that was
initialized for them. So don't initialize it, since that means (1)
less work and (2) they won't fail when HEAD is detached.

Note that this doesn't completely fix the problem with detached HEAD:
a number of other commands (e.g. branch) don't always need to refer to
a current series, but currently fails on a detached HEAD even in those
situations.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/add.py
stgit/commands/resolved.py
stgit/commands/status.py