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 <kha@treskal.com>
def set_parent(self, remote, localbranch):
if localbranch:
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:
self.__set_parent_branch(localbranch)
# We'll enforce this later
# else: