Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdpiprava/dc3a406e9acf2fec84a3edfd1dd74132 to your computer and use it in GitHub Desktop.
Save bdpiprava/dc3a406e9acf2fec84a3edfd1dd74132 to your computer and use it in GitHub Desktop.
URL normalization
@bdpiprava
Copy link
Author

bdpiprava commented May 8, 2019

Fingerprint is Fn(URL with credentials)

Identical materials

None all materials having different URL will be considered unique

Fingerprint is Fn(URL without credentials + username + (branch in case of Hg))

Identical materials

https://github.com/gocd
https://:@github.com/gocd
https://:anypass@github.com/gocd

https://user@github.com/gocd
https://user:@github.com/gocd

https://user:goodpass@github.com/gocd
https://user:badpass@github.com/gocd

What if autoUpdate value is different in the identical material

  1. https://user:goodpass@github.com/gocd with - autoUpdate=true
  2. https://user:badpass@github.com/gocd - autoUpdate=false

Fingerprint is Fn(URL without credentials + username + password +(branch in case of Hg))

Identical materials

https://github.com/gocd
https://:@github.com/gocd

https://user@github.com/gocd
https://user:@github.com/gocd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment