avoid unneccesary extra blank line before git-credentials prompt

This commit is contained in:
Joey Hess 2019-09-24 18:06:10 -04:00
parent bc1b9a2c0a
commit a6c3d1cb6d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -237,9 +237,7 @@ discoverLFSEndpoint tro h
resp <- makeSmallAPIRequest testreq
if needauth (responseStatus resp)
then do
cred <- prompt $ do
showOutput
inRepo $ Git.getUrlCredential (show lfsrepouri)
cred <- prompt $ inRepo $ Git.getUrlCredential (show lfsrepouri)
let endpoint' = addbasicauth cred endpoint
let testreq' = LFS.startTransferRequest endpoint' transfernothing
flip catchNonAsync (const (returnendpoint endpoint')) $ do