Normalize paths as much as possible

Beginning slashes and a trailing ".git" suffix should be ignored, and
not included when canonicalizing project names.  Also, let UNC paths
go through untouched, and attempt to remove duplicate path elements in
a project reference.

Change-Id: Icc6b5cffc9d1bab99e6eb2e7c7e7f9965cf46e8a
2 files changed
tree: 1ffe44e3495f246760edd0dd708ef97234da4e17
  1. .buckconfig
  2. .gitignore
  3. BUCK
  4. LICENSE
  5. lib/
  6. src/