diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2014-09-05 10:26:31 -0700 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2016-09-14 00:17:45 -0400 |
commit | e5c0ea0a959e72ddf6ace9c5a75d86de9e7fc1df (patch) | |
tree | 750d5b10252bf5e1dac5f75f7a7de1e2428372d3 /subcmds/start.py | |
parent | 7a77c16d376f504bd06d017ba10c91e3a6073b08 (diff) | |
download | git-repo-e5c0ea0a959e72ddf6ace9c5a75d86de9e7fc1df.tar.gz |
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 <name>'
observed that the result is the same as if running
'repo start <name> .'
Change-Id: If106caa801b4cd5ba70dbe8354a227d59f100aa3
Diffstat (limited to 'subcmds/start.py')
-rw-r--r-- | subcmds/start.py | 3 |
1 files changed, 1 insertions, 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. | |||
54 | if not opt.all: | 54 | if not opt.all: |
55 | projects = args[1:] | 55 | projects = args[1:] |
56 | if len(projects) < 1: | 56 | if len(projects) < 1: |
57 | print("error: at least one project must be specified", file=sys.stderr) | 57 | projects = ['.',] # start it in the local project by default |
58 | sys.exit(1) | ||
59 | 58 | ||
60 | all_projects = self.GetProjects(projects, | 59 | all_projects = self.GetProjects(projects, |
61 | missing_ok=bool(self.gitc_manifest)) | 60 | missing_ok=bool(self.gitc_manifest)) |