{"thread":{"id":"6183","subject":"StGIT-0.11: Python exception when removing branch","startedAt":"2007-01-01T12:49:11Z","lastAt":"2007-01-01T12:49:11Z","messageCount":1,"participants":["Andrey Borzenkov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"30618","messageId":"200701011549.16942.arvidjaar@mail.ru","threadId":"6183","inReplyTo":null,"subject":"StGIT-0.11: Python exception when removing branch","fromName":"Andrey Borzenkov","fromEmail":"arvidjaar@mail.ru","sentAt":"2007-01-01T12:49:11Z","receivedAt":"2007-01-01T12:49:11Z","isPatch":false,"sender":{"key":"arvidjaar@mail.ru","avatar":null},"body":"-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nEvery time I try to remove a branch I get:\n\n{pts/0}% stg branch --delete stable\nDeleting branch \"stable\"...\nTraceback (most recent call last):\n  File \"/usr/bin/stg\", line 43, in <module>\n    main()\n  File \"/usr/lib/python2.5/site-packages/stgit/main.py\", line 261, in main\n    command.func(parser, options, args)\n  File \"/usr/lib/python2.5/site-packages/stgit/commands/branch.py\", line 167, \nin func\n    __delete_branch(args[0], options.force)\n  File \"/usr/lib/python2.5/site-packages/stgit/commands/branch.py\", line 107, \nin __delete_branch\n    doomed.delete(force)\n  File \"/usr/lib/python2.5/site-packages/stgit/stack.py\", line 583, in delete\n    if not os.listdir(self.__series_dir):\nOSError: [Errno 2] No such file or directory: '.git/patches/stable'\n\nWell, it is correct, stable has never had any patches, but why stg is so upset \nabout it? :)\n\nThe state after this command is\n\n{pts/2}% stg branch -l\nAvailable branches:\n> s     cooker  |\n  s     origin  |\n        stable  |\n\nIt did not happen before; I am not sure whether it was introdied by StGIT or \nPythn update.\n\nRegards and happy new year\n\n- -andrey\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.5 (GNU/Linux)\n\niD8DBQFFmQNMR6LMutpd94wRAuWCAKDQmc5xTW/0okN+MMx5Y8GUBSiqQgCggpUY\nfWPjyHx/usyneWVaRl61lZM=\n=vnEW\n-----END PGP SIGNATURE-----\n"}]}