git/list[1] front-page[2] threads[3] people[4] search[5] about
 

stgit: cannot push a patch - Python trace dump

From
AKAuke Kok <auke-jan.h.kok@intel.com>
Date
Sep 15, 2006, 05:07 UTC
Message-ID
<450A3524.5040403@intel.com>
Hi all,

I'm preparing patches for upstream and am haunted by an apparent patch breaking stg. The problem appears to be one or more of my patches breaking a push:

$ stg push
Traceback (most recent call last):
   File "/usr/bin/stg", line 43, in ?
     main()
   File "/usr/lib/python2.4/site-packages/stgit/main.py", line 255, in main
     command.func(parser, options, args)
   File "/usr/lib/python2.4/site-packages/stgit/commands/push.py", line 101, in
func
     push_patches(patches, options.merged)
   File "/usr/lib/python2.4/site-packages/stgit/commands/common.py", line 160,
in push_patches
     forwarded = crt_series.forward_patches(patches)
   File "/usr/lib/python2.4/site-packages/stgit/stack.py", line 789, in
forward_patches
     committer_email = committer_email)
   File "/usr/lib/python2.4/site-packages/stgit/git.py", line 439, in commit
     if message[-1:] != '\n':
TypeError: unsubscriptable object

I've been abusing stg by leaving the commit messages empty so I assume that that's the cause here, or related to the problem.

This happens with today's stg as well as stg-0.10

After scraping all my patches out manually and adding meaningfull (non-empty) commit messages I seem to be able to push and pop them all again.

Cheers,
Auke
Next: Catalin Marinas
Message 1 of 4 in “stgit: cannot push a patch - Python trace dump”
  1. Auke KokSep 15, 2006
  2. Catalin MarinasSep 15, 2006
  3. Auke KokSep 15, 2006
  4. Catalin MarinasSep 15, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.