diff --git a/repo b/repo index 5dd4b784..e74c01e1 100755 --- a/repo +++ b/repo @@ -205,6 +205,7 @@ gpg_dir = os.path.join(home_dot_repo, 'gnupg') extra_args = [] init_optparse = optparse.OptionParser(usage="repo init -u url [options]") + def _InitParser(): """Setup the init subcommand parser.""" # Logging. @@ -284,6 +285,7 @@ def _GitcInitOptions(init_optparse_arg): dest='gitc_client', help='The name of the gitc_client instance to create or modify.') + _gitc_manifest_dir = None @@ -424,6 +426,7 @@ def _Init(args, gitc_init=False): GitVersion = collections.namedtuple( 'GitVersion', ('major', 'minor', 'micro', 'full')) + def ParseGitVersion(ver_str=None): if ver_str is None: # Load the version ourselves.