From 168815174b75e6037e8eb98cf7b34a91f789e7a4 Mon Sep 17 00:00:00 2001 Message-Id: <168815174b75e6037e8eb98cf7b34a91f789e7a4.1746541378.git.mdw@distorted.org.uk> From: Mark Wooding Date: Fri, 24 Aug 2007 13:20:17 +0200 Subject: [PATCH] Don't write None to the conf file MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Organization: Straylight/Edgeware From: Karl Hasselström If we don't have a value for the remote, just don't write it. Writing None will either write the string "None" or crash StGIT, depending on how exactly the call is done -- and neither is what we want! Signed-off-by: Karl Hasselström --- stgit/stack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stgit/stack.py b/stgit/stack.py index 030562d..0ce9992 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -546,7 +546,8 @@ class Series(PatchSet): def set_parent(self, remote, localbranch): if localbranch: - self.__set_parent_remote(remote) + if remote: + self.__set_parent_remote(remote) self.__set_parent_branch(localbranch) # We'll enforce this later # else: -- [mdw]