diff options
Diffstat (limited to 'subcmds/init.py')
| -rw-r--r-- | subcmds/init.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 750facba..536e367c 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
| @@ -12,7 +12,6 @@ | |||
| 12 | # See the License for the specific language governing permissions and | 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. | 13 | # limitations under the License. |
| 14 | 14 | ||
| 15 | import optparse | ||
| 16 | import os | 15 | import os |
| 17 | import platform | 16 | import platform |
| 18 | import re | 17 | import re |
| @@ -97,10 +96,13 @@ to update the working directory files. | |||
| 97 | """ | 96 | """ |
| 98 | superproject = git_superproject.Superproject(self.manifest, | 97 | superproject = git_superproject.Superproject(self.manifest, |
| 99 | self.repodir, | 98 | self.repodir, |
| 99 | self.git_event_log, | ||
| 100 | quiet=opt.quiet) | 100 | quiet=opt.quiet) |
| 101 | if not superproject.Sync(): | 101 | sync_result = superproject.Sync() |
| 102 | if not sync_result.success: | ||
| 102 | print('error: git update of superproject failed', file=sys.stderr) | 103 | print('error: git update of superproject failed', file=sys.stderr) |
| 103 | sys.exit(1) | 104 | if sync_result.fatal: |
| 105 | sys.exit(1) | ||
| 104 | 106 | ||
| 105 | def _SyncManifest(self, opt): | 107 | def _SyncManifest(self, opt): |
| 106 | m = self.manifest.manifestProject | 108 | m = self.manifest.manifestProject |
