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. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. BUCK
  6. LICENSE