From: Toby Allsopp Date: Wed, 13 Feb 2008 22:25:29 +0000 (+1300) Subject: Fix "stg branch --delete" on a nonexistent branch X-Git-Tag: v0.15-rc1~274 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/fe79e94b3a3710235bf88bb8ec25cbe90d53985d?hp=fe79e94b3a3710235bf88bb8ec25cbe90d53985d Fix "stg branch --delete" on a nonexistent branch Before this patch, I get the following: $ stg branch --delete tmp Deleting branch "tmp" ... Traceback (most recent call last): File "/usr/bin/stg", line 43, in ? main() File "/var/lib/python-support/python2.4/stgit/main.py", line 281, in main command.func(parser, options, args) File "/var/lib/python-support/python2.4/stgit/commands/branch.py", line 190, in func __delete_branch(args[0], options.force) File "/var/lib/python-support/python2.4/stgit/commands/branch.py", line 100, in __delete_branch doomed.delete(force) File "/var/lib/python-support/python2.4/stgit/stack.py", line 758, in delete except GitException: NameError: global name 'GitException' is not defined After it, I get: Deleting branch "tmp" ... Warning: Could not delete branch "tmp" done Signed-off-by: Toby Allsopp Signed-off-by: Karl Hasselström ---