Collapse multiple / into one
Collapse multiple / into one

Summary:
A number of people incorrectly use `glob()` in BUCK files like this:

  some_library(
    srcs=glob(['path/to//src/**/*.java']),
  )

The double-slash typo happens to be treated the same as a single slash
with Python `glob()` (and `pathlib`), but it does not currently work with
Watchman glob (which uses the `wildmatch.c` library, which always fails
to match any pattern with multiple slashes).

I sent a fix upstream to Watchman:

https://github.com/facebook/watchman/pull/310

which sid0 kindly merged, but it will take time to deploy a fix, so
this also works around the bug on the Buck side.

Test Plan:
`buck build //path/to:target` where `srcs` included
a glob with multiple slashes

Reviewed By: ryu2

fbshipit-source-id: 2828a38

robbertvanginkel/buck,robbertvanginkel/buck,SeleniumHQ/buck,daedric/buck,ilya-klyuchnikov/buck,clonetwin26/buck,sdwilsh/buck,illicitonion/buck,kageiit/buck,romanoid/buck,shs96c/buck,rmaz/buck,marcinkwiatkowski/buck,brettwooldridge/buck,robbertvanginkel/buck,daedric/buck,darkforestzero/buck,sdwilsh/buck,SeleniumHQ/buck,nguyentruongtho/buck,brettwooldridge/buck,robbertvanginkel/buck,facebook/buck,Addepar/buck,shs96c/buck,shs96c/buck,romanoid/buck,LegNeato/buck,nguyentruongtho/buck,darkforestzero/buck,kageiit/buck,JoelMarcey/buck,nguyentruongtho/buck,darkforestzero/buck,ilya-klyuchnikov/buck,illicitonion/buck,clonetwin26/buck,k21/buck,illicitonion/buck,OkBuilds/buck,k21/buck,JoelMarcey/buck,LegNeato/buck,ilya-klyuchnikov/buck,vschs007/buck,romanoid/buck,brettwooldridge/buck,brettwooldridge/buck,SeleniumHQ/buck,darkforestzero/buck,zhan-xiong/buck,rmaz/buck,zpao/buck,nguyentruongtho/buck,rmaz/buck,zhan-xiong/buck,ilya-klyuchnikov/buck,vschs007/buck,brettwooldridge/buck,kageiit/buck,vschs007/buck,ilya-klyuchnikov/buck,robbertvanginkel/buck,ilya-klyuchnikov/buck,vschs007/buck,OkBuilds/buck,davido/buck,dsyang/buck,dsyang/buck,LegNeato/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,grumpyjames/buck,brettwooldridge/buck,raviagarwal7/buck,JoelMarcey/buck,vschs007/buck,OkBuilds/buck,LegNeato/buck,janicduplessis/buck,davido/buck,sdwilsh/buck,daedric/buck,rmaz/buck,sdwilsh/buck,marcinkwiatkowski/buck,SeleniumHQ/buck,SeleniumHQ/buck,justinmuller/buck,illicitonion/buck,justinmuller/buck,justinmuller/buck,rmaz/buck,daedric/buck,SeleniumHQ/buck,justinmuller/buck,brettwooldridge/buck,raviagarwal7/buck,justinmuller/buck,k21/buck,zhan-xiong/buck,grumpyjames/buck,zhan-xiong/buck,marcinkwiatkowski/buck,vschs007/buck,shybovycha/buck,robbertvanginkel/buck,Addepar/buck,rmaz/buck,vschs007/buck,grumpyjames/buck,daedric/buck,brettwooldridge/buck,sdwilsh/buck,shs96c/buck,Addepar/buck,Addepar/buck,marcinkwiatkowski/buck,shybovycha/buck,daedric/buck,darkforestzero/buck,JoelMarcey/buck,shybovycha/buck,SeleniumHQ/buck,shs96c/buck,ilya-klyuchnikov/buck,nguyentruongtho/buck,marcinkwiatkowski/buck,JoelMarcey/buck,raviagarwal7/buck,zhan-xiong/buck,JoelMarcey/buck,JoelMarcey/buck,rmaz/buck,zpao/buck,kageiit/buck,brettwooldridge/buck,JoelMarcey/buck,OkBuilds/buck,facebook/buck,romanoid/buck,justinmuller/buck,Addepar/buck,darkforestzero/buck,zhan-xiong/buck,clonetwin26/buck,darkforestzero/buck,Addepar/buck,daedric/buck,rmaz/buck,dsyang/buck,shybovycha/buck,romanoid/buck,darkforestzero/buck,SeleniumHQ/buck,robbertvanginkel/buck,dsyang/buck,clonetwin26/buck,sdwilsh/buck,k21/buck,shs96c/buck,marcinkwiatkowski/buck,k21/buck,daedric/buck,JoelMarcey/buck,shybovycha/buck,justinmuller/buck,OkBuilds/buck,k21/buck,rmaz/buck,romanoid/buck,romanoid/buck,nguyentruongtho/buck,vschs007/buck,robbertvanginkel/buck,shs96c/buck,OkBuilds/buck,Addepar/buck,kageiit/buck,janicduplessis/buck,romanoid/buck,raviagarwal7/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,zhan-xiong/buck,SeleniumHQ/buck,OkBuilds/buck,davido/buck,SeleniumHQ/buck,marcinkwiatkowski/buck,zhan-xiong/buck,romanoid/buck,Addepar/buck,marcinkwiatkowski/buck,davido/buck,illicitonion/buck,sdwilsh/buck,dsyang/buck,ilya-klyuchnikov/buck,LegNeato/buck,shybovycha/buck,illicitonion/buck,grumpyjames/buck,illicitonion/buck,romanoid/buck,justinmuller/buck,JoelMarcey/buck,zpao/buck,SeleniumHQ/buck,clonetwin26/buck,raviagarwal7/buck,brettwooldridge/buck,janicduplessis/buck,shybovycha/buck,darkforestzero/buck,robbertvanginkel/buck,vschs007/buck,darkforestzero/buck,marcinkwiatkowski/buck,raviagarwal7/buck,daedric/buck,shybovycha/buck,dsyang/buck,kageiit/buck,shs96c/buck,SeleniumHQ/buck,brettwooldridge/buck,clonetwin26/buck,vschs007/buck,justinmuller/buck,facebook/buck,romanoid/buck,daedric/buck,robbertvanginkel/buck,k21/buck,LegNeato/buck,raviagarwal7/buck,rmaz/buck,janicduplessis/buck,clonetwin26/buck,darkforestzero/buck,LegNeato/buck,clonetwin26/buck,davido/buck,janicduplessis/buck,grumpyjames/buck,dsyang/buck,dsyang/buck,shs96c/buck,clonetwin26/buck,k21/buck,facebook/buck,romanoid/buck,nguyentruongtho/buck,OkBuilds/buck,raviagarwal7/buck,janicduplessis/buck,davido/buck,janicduplessis/buck,Addepar/buck,clonetwin26/buck,LegNeato/buck,justinmuller/buck,robbertvanginkel/buck,justinmuller/buck,davido/buck,darkforestzero/buck,sdwilsh/buck,sdwilsh/buck,LegNeato/buck,brettwooldridge/buck,janicduplessis/buck,dsyang/buck,janicduplessis/buck,davido/buck,dsyang/buck,justinmuller/buck,illicitonion/buck,k21/buck,ilya-klyuchnikov/buck,janicduplessis/buck,LegNeato/buck,shs96c/buck,vschs007/buck,robbertvanginkel/buck,zhan-xiong/buck,daedric/buck,grumpyjames/buck,marcinkwiatkowski/buck,shybovycha/buck,OkBuilds/buck,JoelMarcey/buck,clonetwin26/buck,ilya-klyuchnikov/buck,dsyang/buck,grumpyjames/buck,k21/buck,zhan-xiong/buck,daedric/buck,shybovycha/buck,grumpyjames/buck,marcinkwiatkowski/buck,grumpyjames/buck,raviagarwal7/buck,grumpyjames/buck,zhan-xiong/buck,sdwilsh/buck,kageiit/buck,davido/buck,Addepar/buck,vschs007/buck,rmaz/buck,k21/buck,ilya-klyuchnikov/buck,vschs007/buck,sdwilsh/buck,sdwilsh/buck,dsyang/buck,illicitonion/buck,Addepar/buck,zhan-xiong/buck,LegNeato/buck,facebook/buck,davido/buck,darkforestzero/buck,facebook/buck,sdwilsh/buck,grumpyjames/buck,daedric/buck,shybovycha/buck,rmaz/buck,raviagarwal7/buck,facebook/buck,raviagarwal7/buck,OkBuilds/buck,OkBuilds/buck,shs96c/buck,romanoid/buck,rmaz/buck,illicitonion/buck,illicitonion/buck,raviagarwal7/buck,LegNeato/buck,OkBuilds/buck,janicduplessis/buck,zhan-xiong/buck,davido/buck,zpao/buck,justinmuller/buck,Addepar/buck,zpao/buck,k21/buck,shs96c/buck,zpao/buck,robbertvanginkel/buck,k21/buck,shybovycha/buck,illicitonion/buck,marcinkwiatkowski/buck,clonetwin26/buck,grumpyjames/buck,illicitonion/buck,marcinkwiatkowski/buck,shybovycha/buck,zpao/buck,LegNeato/buck,dsyang/buck,Addepar/buck,raviagarwal7/buck,shs96c/buck,davido/buck,clonetwin26/buck,janicduplessis/buck,davido/buck,SeleniumHQ/buck,OkBuilds/buck,JoelMarcey/buck