avoid unneccesary extra blank line before git-credentials prompt
This commit is contained in:
parent
bc1b9a2c0a
commit
a6c3d1cb6d
1 changed files with 1 additions and 3 deletions
|
@ -237,9 +237,7 @@ discoverLFSEndpoint tro h
|
||||||
resp <- makeSmallAPIRequest testreq
|
resp <- makeSmallAPIRequest testreq
|
||||||
if needauth (responseStatus resp)
|
if needauth (responseStatus resp)
|
||||||
then do
|
then do
|
||||||
cred <- prompt $ do
|
cred <- prompt $ inRepo $ Git.getUrlCredential (show lfsrepouri)
|
||||||
showOutput
|
|
||||||
inRepo $ Git.getUrlCredential (show lfsrepouri)
|
|
||||||
let endpoint' = addbasicauth cred endpoint
|
let endpoint' = addbasicauth cred endpoint
|
||||||
let testreq' = LFS.startTransferRequest endpoint' transfernothing
|
let testreq' = LFS.startTransferRequest endpoint' transfernothing
|
||||||
flip catchNonAsync (const (returnendpoint endpoint')) $ do
|
flip catchNonAsync (const (returnendpoint endpoint')) $ do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue