diff options
| -rw-r--r-- | project.py | 2 | ||||
| -rwxr-xr-x | repo | 3 | ||||
| -rw-r--r-- | subcmds/start.py | 3 | ||||
| -rw-r--r-- | subcmds/upload.py | 10 |
4 files changed, 11 insertions, 7 deletions
| @@ -1834,7 +1834,7 @@ class Project(object): | |||
| 1834 | objdir=objdir, | 1834 | objdir=objdir, |
| 1835 | worktree=worktree, | 1835 | worktree=worktree, |
| 1836 | relpath=relpath, | 1836 | relpath=relpath, |
| 1837 | revisionExpr=self.revisionExpr, | 1837 | revisionExpr=rev, |
| 1838 | revisionId=rev, | 1838 | revisionId=rev, |
| 1839 | rebase=self.rebase, | 1839 | rebase=self.rebase, |
| 1840 | groups=self.groups, | 1840 | groups=self.groups, |
| @@ -27,6 +27,9 @@ VERSION = (1, 23) | |||
| 27 | 27 | ||
| 28 | # increment this if the MAINTAINER_KEYS block is modified | 28 | # increment this if the MAINTAINER_KEYS block is modified |
| 29 | KEYRING_VERSION = (1, 2) | 29 | KEYRING_VERSION = (1, 2) |
| 30 | |||
| 31 | # Each individual key entry is created by using: | ||
| 32 | # gpg --armor --export keyid | ||
| 30 | MAINTAINER_KEYS = """ | 33 | MAINTAINER_KEYS = """ |
| 31 | 34 | ||
| 32 | Repo Maintainer <repo@android.kernel.org> | 35 | Repo Maintainer <repo@android.kernel.org> |
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)) |
diff --git a/subcmds/upload.py b/subcmds/upload.py index 4b05f1e8..1172dadc 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
| @@ -454,7 +454,11 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
| 454 | if avail: | 454 | if avail: |
| 455 | pending.append((project, avail)) | 455 | pending.append((project, avail)) |
| 456 | 456 | ||
| 457 | if pending and (not opt.bypass_hooks): | 457 | if not pending: |
| 458 | print("no branches ready for upload", file=sys.stderr) | ||
| 459 | return | ||
| 460 | |||
| 461 | if not opt.bypass_hooks: | ||
| 458 | hook = RepoHook('pre-upload', self.manifest.repo_hooks_project, | 462 | hook = RepoHook('pre-upload', self.manifest.repo_hooks_project, |
| 459 | self.manifest.topdir, | 463 | self.manifest.topdir, |
| 460 | self.manifest.manifestProject.GetRemote('origin').url, | 464 | self.manifest.manifestProject.GetRemote('origin').url, |
| @@ -474,9 +478,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
| 474 | cc = _SplitEmails(opt.cc) | 478 | cc = _SplitEmails(opt.cc) |
| 475 | people = (reviewers, cc) | 479 | people = (reviewers, cc) |
| 476 | 480 | ||
| 477 | if not pending: | 481 | if len(pending) == 1 and len(pending[0][1]) == 1: |
| 478 | print("no branches ready for upload", file=sys.stderr) | ||
| 479 | elif len(pending) == 1 and len(pending[0][1]) == 1: | ||
| 480 | self._SingleBranch(opt, pending[0][1][0], people) | 482 | self._SingleBranch(opt, pending[0][1][0], people) |
| 481 | else: | 483 | else: |
| 482 | self._MultipleBranches(opt, pending, people) | 484 | self._MultipleBranches(opt, pending, people) |
