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

[PATCH] Correctly raise exception on unknown pull-policy.

From
Yann Dirson <ydirson@altern.org>
Date
Feb 25, 2007, 19:27 UTC
Message-ID
<20070225192714.15658.33532.stgit@gandelf.nowhere.earth>
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 stgit/commands/pull.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/stgit/commands/pull.py b/stgit/commands/pull.py
index e4a2b62..7b3c90c 100644
--- a/stgit/commands/pull.py
+++ b/stgit/commands/pull.py
@@ -20,6 +20,7 @@ from optparse import OptionParser, make_option
 
 from stgit.commands.common import *
 from stgit.utils import *
+from stgit.config import GitConfigException
 from stgit import stack, git
 
 
@@ -73,7 +74,7 @@ def func(parser, options, args):
     elif policy == 'rebase':
         must_rebase = 1
     else:
-        raise config.ConfigException, 'Unsupported pull-policy "%s"' % policy
+        raise GitConfigException, 'Unsupported pull-policy "%s"' % policy
 
     applied = prepare_rebase(real_rebase=must_rebase, force=options.force)
 
Message 1 of 1 in “Correctly raise exception on unknown pull-policy.”
  1. Correctly raise exception on unknown pull-policy.Yann Dirson, Feb 25, 2007

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.