sapling/eden/mononoke/git
Robin Håkanson 811e56d49e Better GitRepo name in gitimport logs.
Summary:
Better GitRepo name in gitimport logs.
When several git-repositories was handled by the same running instance, and all of them being called `.git`in the logs where not that useful.

Examples (when no name explicitly provided and git-import derives a name from the path to the git repository):
path: `/home/matshakanson/.cache/git_cache/aosp/device/generic/goldfish`
Note that the opened path is resolved to `/home/matshakanson/.cache/git_cache/aosp/device/generic/goldfish/.git` doe to not being a barren repository.

derived name previous revision: `.git`
derived name this revision: `/home/matshakanson/.cache/git_cache/aosp/device/generic/goldfish`

Now why not just remove the `.git` portion if present (to handle barren repositories)? Well we often have a big tree of git repositories we opreate on, and the final directory name in the tree is not unique. So instead using the full path to remove any ambiguity.
Note that this is just the default naming derived if the caller does not specify their own name .

Reviewed By: krallin

Differential Revision: D26697498

fbshipit-source-id: 3de893406525f88556f5bcd87abe238b7f2d8929
2021-03-01 09:54:07 -08:00
..
git_types autocargo v1: reformating of oss-dependencies, workspace and patch sections and thrift files to match v2 2021-02-25 15:10:56 -08:00
git-pool autocargo v1: changes to match autocargo v2 generation results. 2021-02-19 11:03:55 -08:00
gitimport autocargo v1: reformating of oss-dependencies, workspace and patch sections and thrift files to match v2 2021-02-25 15:10:56 -08:00
import_tools Better GitRepo name in gitimport logs. 2021-03-01 09:54:07 -08:00