diff options
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -42,7 +42,7 @@ from git_command import git, GitCommand | |||
42 | from git_config import init_ssh, close_ssh | 42 | from git_config import init_ssh, close_ssh |
43 | from command import InteractiveCommand | 43 | from command import InteractiveCommand |
44 | from command import MirrorSafeCommand | 44 | from command import MirrorSafeCommand |
45 | from command import RequiresGitcCommand | 45 | from command import GitcAvailableCommand, GitcClientCommand |
46 | from subcmds.version import Version | 46 | from subcmds.version import Version |
47 | from editor import Editor | 47 | from editor import Editor |
48 | from error import DownloadError | 48 | from error import DownloadError |
@@ -144,11 +144,16 @@ class _Repo(object): | |||
144 | file=sys.stderr) | 144 | file=sys.stderr) |
145 | return 1 | 145 | return 1 |
146 | 146 | ||
147 | if isinstance(cmd, RequiresGitcCommand) and not gitc_utils.get_gitc_manifest_dir(): | 147 | if isinstance(cmd, GitcAvailableCommand) and not gitc_utils.get_gitc_manifest_dir(): |
148 | print("fatal: '%s' requires GITC to be available" % name, | 148 | print("fatal: '%s' requires GITC to be available" % name, |
149 | file=sys.stderr) | 149 | file=sys.stderr) |
150 | return 1 | 150 | return 1 |
151 | 151 | ||
152 | if isinstance(cmd, GitcClientCommand) and not gitc_client_name: | ||
153 | print("fatal: '%s' requires a GITC client" % name, | ||
154 | file=sys.stderr) | ||
155 | return 1 | ||
156 | |||
152 | try: | 157 | try: |
153 | copts, cargs = cmd.OptionParser.parse_args(argv) | 158 | copts, cargs = cmd.OptionParser.parse_args(argv) |
154 | copts = cmd.ReadEnvironmentOptions(copts) | 159 | copts = cmd.ReadEnvironmentOptions(copts) |