git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] StGit: export: fix base commit reporting in series file
@ 2010-11-21 15:57 Paulius Zaleckas
  2010-11-24 16:57 ` Catalin Marinas
  0 siblings, 1 reply; 2+ messages in thread
From: Paulius Zaleckas @ 2010-11-21 15:57 UTC (permalink / raw)
  To: catalin.marinas, git

This bug was introduced in 3f19450c426970b78b19c522a82df1a962da5761
It should report the commit stg stack is based on, but not the
last patch in stack.

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
---

 stgit/commands/export.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/stgit/commands/export.py b/stgit/commands/export.py
index 4285612..a661a7d 100644
--- a/stgit/commands/export.py
+++ b/stgit/commands/export.py
@@ -115,7 +115,7 @@ def func(parser, options, args):
 
     # note the base commit for this series
     if not options.stdout:
-        base_commit = stack.patches.get(patches[0]).commit.sha1
+        base_commit = stack.base.sha1
         print >> series, '# This series applies on GIT commit %s' % base_commit
 
     patch_no = 1;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] StGit: export: fix base commit reporting in series file
  2010-11-21 15:57 [PATCH] StGit: export: fix base commit reporting in series file Paulius Zaleckas
@ 2010-11-24 16:57 ` Catalin Marinas
  0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2010-11-24 16:57 UTC (permalink / raw)
  To: Paulius Zaleckas; +Cc: git

On 21 November 2010 15:57, Paulius Zaleckas <paulius.zaleckas@gmail.com> wrote:
> This bug was introduced in 3f19450c426970b78b19c522a82df1a962da5761
> It should report the commit stg stack is based on, but not the
> last patch in stack.
>
> Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>

Thanks, applied.

-- 
Catalin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-24 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-21 15:57 [PATCH] StGit: export: fix base commit reporting in series file Paulius Zaleckas
2010-11-24 16:57 ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).