From a3c3df075de28adf4a51b2cc980abee15037bb06 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 12 Jan 2009 08:28:23 +0000 Subject: Fix a TypeError which occurs in pretend commit mode when vcs is None. Thanks to Fabian Groffen for reporting. (trunk r12426) svn path=/main/branches/2.1.6/; revision=12479 --- bin/repoman | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin/repoman') diff --git a/bin/repoman b/bin/repoman index 129a4296e..c285bd6de 100755 --- a/bin/repoman +++ b/bin/repoman @@ -2158,7 +2158,12 @@ else: mymsg.write("\n (Unsigned Manifest commit)") mymsg.close() - commit_cmd = [vcs] + commit_cmd = [] + if options.pretend and vcs is None: + # substitute a bogus value for pretend output + commit_cmd.append("cvs") + else: + commit_cmd.append(vcs) commit_cmd.extend(vcs_global_opts) commit_cmd.append("commit") commit_cmd.extend(vcs_local_opts) -- cgit v1.2.3-1-g7c22