Skip to content

Commit b302393

Browse files
dschoGit for Windows Build Agent
authored andcommitted
fixup??? reset: reinstate support for the deprecated --stdin option
This is now required because of `jk/bundle-use-dash-for-stdfiles`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ed81617 commit b302393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
362362
parse_args(&pathspec, argv, prefix, patch_mode, &rev);
363363

364364
if (read_from_stdin) {
365-
pathspec_from_file = "-";
365+
pathspec_from_file = xstrdup("-");
366366
if (nul_term_line)
367367
pathspec_file_nul = 1;
368368
}

0 commit comments

Comments
 (0)