# stgit: cannot push a patch - Python trace dump

4 messages from 2006-09-15 to 2006-09-15. Participants: Auke Kok, Catalin Marinas.
Thread: https://gitlist.dev/t/5567

## Auke Kok, 2006-09-15 05:07

Subject: stgit: cannot push a patch - Python trace dump
Message-ID: <450A3524.5040403@intel.com>
URL: https://gitlist.dev/e/450A3524.5040403%40intel.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

```

## Catalin Marinas, 2006-09-15 08:58

Subject: Re: stgit: cannot push a patch - Python trace dump
Message-ID: <tnxwt855wvr.fsf@arm.com>
URL: https://gitlist.dev/e/tnxwt855wvr.fsf%40arm.com
In-Reply-To: <450A3524.5040403@intel.com>

```
Auke Kok <auke-jan.h.kok@intel.com> wrote:
> 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:
[...]
> 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.

Thanks, I fixed StGIT to cope with this and I'll update the repository
and snapshot tonight (which, BTW, will contain the initial support for
patch history tracking).

-- 
Catalin

```

## Auke Kok, 2006-09-15 14:26

Subject: Re: stgit: cannot push a patch - Python trace dump
Message-ID: <450AB81F.2090305@intel.com>
URL: https://gitlist.dev/e/450AB81F.2090305%40intel.com
In-Reply-To: <tnxwt855wvr.fsf@arm.com>

```
Catalin Marinas wrote:
> Auke Kok <auke-jan.h.kok@intel.com> wrote:
>> 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:
> [...]
>> 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.
> 
> Thanks, I fixed StGIT to cope with this and I'll update the repository
> and snapshot tonight (which, BTW, will contain the initial support for
> patch history tracking).

awesome and awesome, allthough I have no idea what that (patch history 
tracking) is about :)

Auke

```

## Catalin Marinas, 2006-09-15 14:33

Subject: Re: stgit: cannot push a patch - Python trace dump
Message-ID: <b0943d9e0609150733v6cbe465esfd8d2b598c496768@mail.gmail.com>
URL: https://gitlist.dev/e/b0943d9e0609150733v6cbe465esfd8d2b598c496768%40mail.gmail.com
In-Reply-To: <450AB81F.2090305@intel.com>

```
On 15/09/06, Auke Kok <auke-jan.h.kok@intel.com> wrote:
> Catalin Marinas wrote:
> > Thanks, I fixed StGIT to cope with this and I'll update the repository
> > and snapshot tonight (which, BTW, will contain the initial support for
> > patch history tracking).
>
> awesome and awesome, allthough I have no idea what that (patch history
> tracking) is about :)

It keeps the history of all the patch modifications (like refresh,
push) so that you can get previous versions if something went wrong.
It's like having many small commits reflecting the changes to a patch.
These commits are totally separate from the main patch commit (so that
an StGIT repository is still compatible with GIT) but you can access
them with "stg log [--graphical] <patch>". The --graphical option will
automatically invoke gitk.

-- 
Catalin

```
