aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/new.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-18 15:14:25 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-18 15:14:25 +0000
commitd7d616e4f8b885f55f8052e5eb22f3cec7ddbee4 (patch)
treee9441bf413985b6e24a5a2aede498d639c7128ef /becommands/new.py
parent90e118fac5cfb345e10487039a375c8af5835ddf (diff)
downloadbugseverywhere-d7d616e4f8b885f55f8052e5eb22f3cec7ddbee4.tar.gz
Used cmdutil tree_root wrapper to avoid tracebacks on wrong tree
Diffstat (limited to 'becommands/new.py')
-rw-r--r--becommands/new.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/becommands/new.py b/becommands/new.py
index e36bc84..7c3a952 100644
--- a/becommands/new.py
+++ b/becommands/new.py
@@ -3,7 +3,7 @@ from libbe import bugdir, cmdutil, names
def execute(args):
if len(args) != 1:
raise cmdutil.UserError("Please supply a summary message")
- dir = bugdir.tree_root(".")
+ dir = cmdutil.bug_tree()
bug = dir.new_bug()
bug.creator = names.creator()
bug.severity = "minor"