{"id":23104,"library":"git-review","title":"git-review","description":"git-review is a command-line tool that simplifies submitting code changes to Gerrit code review. Version 2.5.0, released 2024-04-15, supports Python >=3.6. It wraps git operations like push, rebase, and review requests. Maintenance mode with low release cadence.","status":"maintenance","version":"2.5.0","language":"python","source_language":"en","source_url":"https://opendev.org/opendev/git-review","tags":["gerrit","code-review","git","cli","development"],"install":[{"cmd":"pip install git-review","lang":"bash","label":"Standard installation"}],"dependencies":[{"reason":"Used for git operations","package":"gitpython","optional":false},{"reason":"HTTP requests to Gerrit","package":"urllib3","optional":false},{"reason":"Package discovery","package":"setuptools","optional":true}],"imports":[{"note":"git-review exposes a CLI via 'git review'; programmatic usage imports 'main' from 'git_review' package.","wrong":"import git_review","symbol":"main","correct":"from git_review import main"}],"quickstart":{"code":"from git_review import main\nimport sys\nif __name__ == '__main__':\n    # Simulate 'git review' command-line invocation\n    sys.argv = ['git-review', '--help']\n    main()","lang":"python","description":"Programmatic entry point for git-review. The CLI tool is invoked via 'git review' command, but the Python package can be accessed via 'git_review' module."},"warnings":[{"fix":"After installing, ensure 'git-review' executable is in PATH, and use 'git review' (with space) as a git subcommand.","message":"git-review is installed as a Python package but used via 'git review' command (not 'git-review'). The pip executable might conflict with the git wrapper.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to Python 3.8+ for compatibility with future versions.","message":"Python 3.6 support is deprecated in version 2.5.0. Future releases may drop support.","severity":"deprecated","affected_versions":"2.5.0"},{"fix":"Update configuration: use 'git config --global gitreview.*' instead of .gitreview file.","message":"In git-review 2.0+, the configuration file format changed from ~/.gitreview to using git config sections.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Change to a Git repository directory before calling git review.","message":"git-review requires the current directory to be inside a Git repository. Running outside will raise a RuntimeError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure you are inside a git repository: 'cd /path/to/repo' then run command.","cause":"Command was run outside a git repository.","error":"RuntimeError: Not a git repository"},{"fix":"Install with 'pip install git-review' and check that the 'git-review' executable is available.","cause":"The git-review package is not installed or not in PATH.","error":"git: 'review' is not a git command. See 'git --help'."},{"fix":"Use 'from git_review import main' instead of 'import gitreview'.","cause":"Trying to import the package inside Python, but the module is named 'git_review' (with underscore), not 'gitreview'.","error":"ImportError: No module named 'git_review'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}