netlify / netlify-credential-helper

Git credential helper to use Netlify's API as authentication backend
MIT License
17 stars 4 forks source link

Fix netlifyLFSPath, change Api/Lfs to API/LFS #20

Closed keiko713 closed 5 years ago

keiko713 commented 5 years ago

The path shouldn't start with /, because that's not what Git will give you.

Tested:

$ git credential fill
protocol=https
host=lm-cli-test.netlify.com
path=.netlify/large-media

protocol=https
host=lm-cli-test.netlify.com
path=.netlify/large-media
username=access-token
password=mygreatpassword

Also improved error log a bit:

time="2019-01-25T16:17:04-08:00" level=error msg="Aborting Netlify credential helper execution" error="Invalid LFS path: map[protocol:https host:lm-cli-test.netlify.com path:/.netlify/large-media]"