Skip to content

Commit e47eb55

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
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 4a6d84b commit e47eb55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/reset.c

+1-1
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)