-- the following commands break in subdirs:
- - refresh (ml: "Running StGIT in subdirectories")
-- "stg show" on empty patch shows previous patch
-- "stg add" is accepted when no patch is applied, then any push says
- one must refresh first, which is obviously wrong
-- "stg add" on files already added should print a notice, so that the
- user can catch a possible typo
+- patch created with empty description ("stg new" and quit editor
+without saving) confuse "series -d":
+|$ stg series -ds
+|+ p5 | p5
+|Traceback (most recent call last):
+| File "/usr/bin/stg", line 43, in ?
+| main()
+| File "/var/lib/python-support/python2.4/stgit/main.py", line 261, in main
+| command.func(parser, options, args)
+| File "/var/lib/python-support/python2.4/stgit/commands/series.py", line 107, in func
+| __print_patch(applied[-1], '> ', '0>', max_len, options)
+| File "/var/lib/python-support/python2.4/stgit/commands/series.py", line 63, in __print_patch
+| print prefix + patch.ljust(length) + ' | ' + __get_description(patch)
+| File "/var/lib/python-support/python2.4/stgit/commands/series.py", line 55, in __get_description
+| descr = p.get_description().strip()
+|AttributeError: 'NoneType' object has no attribute 'strip'
+|dwitch@gandelf:/export/work/yann/git/foo/a$ stg series
+|+ p5
+|> y
+|$ cat .git/patches/master/patches/y/description
+|cat: .git/patches/master/patches/y/description: No such file or directory