pass
-# Global variables
-try:
- crt_series = stack.Series()
-except (IOError, stack.StackException, git.GitException), err:
- print >> sys.stderr, err
- sys.exit(2)
-
-
# Utility functions
def git_id(string):
"""Return the GIT id
option_list = command.options)
options, args = parser.parse_args()
try:
+ # the lines below are a simple way to avoid an exception when
+ # stgit is run outside an initialised tree
+ stgit.commands.common.crt_series = stack.Series()
+ setattr(command, 'crt_series', stgit.commands.common.crt_series)
+
command.func(parser, options, args)
except (IOError, CmdException, stack.StackException, git.GitException), \
err: