chiark / gitweb /
Fix more commands to run correctly in subdirectories
[stgit] / stgit / commands / export.py
index d8ce86d9f1604fe0c297080970b7b7ebfd189308..913172914feff00911a3415c1c1e6f1b5ab4c6d5 100644 (file)
@@ -78,6 +78,7 @@ def func(parser, options, args):
         dirname = options.dir
     else:
         dirname = 'patches-%s' % crt_series.get_name()
+        directory.cd_to_topdir()
 
     if not options.branch and git.local_changes():
         out.warn('Local changes in the tree;'