commit | f914edca5354141facc7e6c9f7facd77835ed766 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@google.com> | Sun Feb 09 03:01:56 2020 -0500 |
committer | David Pursehouse <dpursehouse@collab.net> | Sun Feb 09 23:26:05 2020 +0000 |
tree | 4d17a0860a4e3576d0d1dd8c95aff256cf1950cf | |
parent | e7c91889a6ff23931d3fbc25481b276e50ed8229 [diff] |
project: unify HEAD path management Add a helper function to unify the duplication of finding the full path to the symbolic HEAD ref. This makes it easy to handle git worktrees where .git is a file rather than a dir/symlink. Bug: https://crbug.com/gerrit/11486 Change-Id: I9f794f1295ad0d98c7c13622f01ded51e4ba7846 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254074 Tested-by: Mike Frysinger <vapier@google.com> Reviewed-by: David Pursehouse <dpursehouse@collab.net>
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.
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