From e5c0ea0a959e72ddf6ace9c5a75d86de9e7fc1df Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Fri, 5 Sep 2014 10:26:31 -0700 Subject: [PATCH] Consider local project to be default for 'repo start' The requirement to explicitly specify the local project when starting a new repo branch is somewhat counter intuitive. This patch uses the current directory's git tree as the default project. Tested by running 'repo start ' observed that the result is the same as if running 'repo start .' Change-Id: If106caa801b4cd5ba70dbe8354a227d59f100aa3 --- subcmds/start.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subcmds/start.py b/subcmds/start.py index d1430a9d..290b6897 100644 --- a/subcmds/start.py +++ b/subcmds/start.py @@ -54,8 +54,7 @@ revision specified in the manifest. if not opt.all: projects = args[1:] if len(projects) < 1: - print("error: at least one project must be specified", file=sys.stderr) - sys.exit(1) + projects = ['.',] # start it in the local project by default all_projects = self.GetProjects(projects, missing_ok=bool(self.gitc_manifest))