We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3e7b42 commit b28f5bcCopy full SHA for b28f5bc
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