We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b15e61 commit 39da5ecCopy full SHA for 39da5ec
src/utils/credentials.cpp
@@ -18,7 +18,10 @@ int user_credentials(
18
*out = nullptr;
19
20
if (allowed_types & GIT_CREDENTIAL_USERPASS_PLAINTEXT) {
21
- std::string username = username_from_url ? username_from_url : prompt_input("Username: ");
+ std::string username = username_from_url ? username_from_url : "";
22
+ if (username.empty()) {
23
+ username = prompt_input("Username: ");
24
+ }
25
if (username.empty()) {
26
giterr_set_str(GIT_ERROR_HTTP, "No username specified");
27
return GIT_EAUTH;
0 commit comments