Go to file
David Pursehouse 145e35b805 Fix usage of bare 'except'
flake8 reports:

  E722 do not use bare 'except'

Replace them with 'except Exception' per [1] which says:

  Bare except will catch exceptions you almost certainly don't want
  to catch, including KeyboardInterrupt (the user hitting Ctrl+C) and
  Python-raised errors like SystemExit

  If you don't have a specific exception you're expecting, at least
  except Exception, which is the base type for all "Regular" exceptions.

[1] https://stackoverflow.com/a/54948581

Change-Id: Ic555ea9482645899f5b04040ddb6b24eadbf9062
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254606
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: David Pursehouse <dpursehouse@collab.net>
2020-02-12 06:49:25 +00:00
docs docs: document git/python/Ubuntu/Debian release schedules 2020-02-12 00:27:59 +00:00
hooks hooks/pre-auto-gc-battery: allow gc to run on non-laptops 2018-07-11 13:45:58 -07:00
subcmds Fix usage of bare 'except' 2020-02-12 06:49:25 +00:00
tests Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
.flake8 flake8: Increase max line length from 80 to 100 2020-02-12 05:16:11 +00:00
.gitattributes Adds additional crlf clobber avoidance. 2016-06-22 08:36:45 +00:00
.gitignore Add PyCharm project directory into the .gitignore 2020-01-24 23:09:49 +00:00
.mailmap Update .mailmap 2017-05-26 21:44:57 +09:00
.project Set correct name in PyDev and Eclipse project config 2013-04-19 09:35:43 +09:00
.pydevproject Leverage the next keyword from python 2.7 2018-12-19 11:06:35 -08:00
color.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
command.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
editor.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
error.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
event_log.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
git_command.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
git_config.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
git_refs.py Fix various whitespace issues reported by pyflakes 2020-02-12 06:00:16 +00:00
git_ssh add license header to a few more files 2019-06-13 13:23:19 -04:00
gitc_utils.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
LICENSE setup.py: add basic packaging files 2019-12-02 04:23:31 +00:00
main.py Fix usage of bare 'except' 2020-02-12 06:49:25 +00:00
manifest_xml.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
MANIFEST.in setup.py: add basic packaging files 2019-12-02 04:23:31 +00:00
pager.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
platform_utils_win32.py [Win32] Make platform_utils compatible for Python3 2020-02-06 14:29:15 +00:00
platform_utils.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
progress.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
project.py Fix usage of bare 'except' 2020-02-12 06:49:25 +00:00
pyversion.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
README.md docs: add Windows support info 2019-12-05 01:02:08 +00:00
repo repo: lower min version of git a bit 2020-02-12 00:28:03 +00:00
repo_trace.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
run_tests find python via env 2020-02-09 04:02:45 +00:00
setup.py find python via env 2020-02-09 04:02:45 +00:00
SUBMITTING_PATCHES.md tox: add & document tox usage 2019-12-02 04:24:23 +00:00
tox.ini tox: add & document tox usage 2019-12-02 04:24:23 +00:00
wrapper.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00

repo

Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git. The repo command is an executable Python script that you can put anywhere in your path.

Install

Many distros include repo, so you might be able to install from there.

# Debian/Ubuntu.
$ sudo apt-get install repo

# Gentoo.
$ sudo emerge dev-vcs/repo

You can install it manually as well as it's a single script.

$ mkdir -p ~/.bin
$ PATH="${HOME}/.bin:${PATH}"
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
$ chmod a+rx ~/.bin/repo