Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

git config throws key errors for things that should be optional #1

@GoogleCodeExporter

Description

@GoogleCodeExporter
Our public repository config was

 "public_repository": {
  "type": "git",
  "url": "ssh://git@github.com:facebook/project_name.git"
 },

It threw a key exception for branch, so I added master as the branch then it 
threw a key exception for gerrit_autoapprove.

Small Stacktrace:

  File "/usr/local/lib/python2.6/dist-packages/moe-0.1-py2.6.egg/moe/config.py", line 187, in MoeProjectConfigFromJson
    project_space=base.PUBLIC_STR)
  File "/usr/local/lib/python2.6/dist-packages/moe-0.1-py2.6.egg/moe/config.py", line 274, in MakeRepositoryConfig
    project_space=project_space)
  File "/usr/local/lib/python2.6/dist-packages/moe-0.1-py2.6.egg/moe/git.py", line 469, in __init__
    self.gerrit_autoapprove = config_json['gerrit_autoapprove']

Original issue reported on code.google.com by sc...@macvicar.net on 7 Apr 2011 at 11:27

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions