We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ada6ebb + e1c1a32 commit f5678f1Copy full SHA for f5678f1
prompt.c
@@ -22,6 +22,7 @@ static char *do_askpass(const char *cmd, const char *prompt)
22
if (start_command(&pass))
23
return NULL;
24
25
+ strbuf_reset(&buffer);
26
if (strbuf_read(&buffer, pass.out, 20) < 0)
27
err = 1;
28
@@ -38,7 +39,7 @@ static char *do_askpass(const char *cmd, const char *prompt)
38
39
40
strbuf_setlen(&buffer, strcspn(buffer.buf, "\r\n"));
41
- return strbuf_detach(&buffer, NULL);
42
+ return buffer.buf;
43
}
44
45
char *git_prompt(const char *prompt, int flags)
0 commit comments