You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
repo lack a mechanism to retrieve the root directory of the projects.
git have such mean with git rev-parse --show-toplevel.
For some automated tools, it's useful to easily find such root directory.
repo should also have a command to retrieve the absolute path to .repo
directory, like git with git rev-parse --git-dir.
For completeness, a command to report the path to the manifest work tree could
be useful.
The proposed patch adds a repo directory command with following options
-t for toplevel project directory.
-r for .repo directory (<toplevel>/.repo).
-m for manifests directory (<toplevel>/.repo/manifests).
An additional patch also add environment variables in repo forall so that the
command executed by repo forall can benefit from such paths at no cost (without
having to call repo directory):
$REPO_TOPDIR for the absolute path to the project top directory.
$REPO_REPO for the absolute path to the .repo directory.
$REPO_MANIFESTS for the absolute path to the .repo/manifests directory.
Original issue reported on code.google.com by [email protected] on 29 May 2015 at 7:49
Original issue reported on code.google.com by
[email protected]
on 29 May 2015 at 7:49Attachments:
The text was updated successfully, but these errors were encountered: