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

[PATCH] StGit: export: fix base commit reporting in series file

From
PZPaulius Zaleckas <paulius.zaleckas@gmail.com>
Date
Nov 21, 2010, 15:57 UTC
Message-ID
<20101121155706.16544.20984.stgit@localhost.localdomain>

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;
Next: Catalin Marinas
Message 1 of 2 in “StGit: export: fix base commit reporting in series file”
  1. StGit: export: fix base commit reporting in series filePaulius Zaleckas, Nov 21, 2010
  2. Catalin MarinasNov 24, 2010

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.