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

[StGit PATCH] fix export -s

From
DWDan Williams <dan.j.williams@intel.com>
Date
Dec 3, 2008, 19:18 UTC
Message-ID
<20081203191817.8016.5209.stgit@dwillia2-linux.ch.intel.com>
Resolves:
stg export -s `stg top`
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/stgit/main.py", line 152, in _main
    ret = command.func(parser, options, args)
  File "/usr/local/lib/python2.5/site-packages/stgit/commands/export.py", line 169, in func
    f = sys.stdout
NameError: global name 'sys' is not defined
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 stgit/commands/export.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/stgit/commands/export.py b/stgit/commands/export.py
index dfdcea1..1236b01 100644
--- a/stgit/commands/export.py
+++ b/stgit/commands/export.py
@@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 """
 
 import os
+import sys
 from stgit.argparse import opt
 from stgit.commands import common
 from stgit import argparse, git, templates
Message 1 of 1 in “fix export -s”
  1. fix export -sDan Williams, Dec 3, 2008

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.