author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 21 Feb 2007 06:33:59 +0000 (01:33 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 21 Feb 2007 06:33:59 +0000 (01:33 -0500) | ||
commit | 981193786fc30b9ee73b9f223a75642b4ed455b9 | |
tree | 6bc4da1ba5e542f5887e96d8ae3c516cac26c246 | tree | snapshot |
parent | 7391b2e9991e138786a2ac049ce7f276f7abce40 | commit | diff |
git-gui: Don't crash in citool mode on initial commit.
Attempting to use `git citool` to create an initial commit caused
git-gui to crash with a Tcl error as it tried to add the newly
born branch to the non-existant branch menu. Moving this code
to after the normal commit cleanup logic resolves the issue, as
we only have a branch menu if we are not in singlecommit mode.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Attempting to use `git citool` to create an initial commit caused
git-gui to crash with a Tcl error as it tried to add the newly
born branch to the non-existant branch menu. Moving this code
to after the normal commit cleanup logic resolves the issue, as
we only have a branch menu if we are not in singlecommit mode.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |