Skip to content

Commit b6dd36d

Browse files
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 2f3cfea commit b6dd36d

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
@@ -369,7 +369,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
369369
parse_args(&pathspec, argv, prefix, patch_mode, &rev);
370370

371371
if (read_from_stdin) {
372-
pathspec_from_file = "-";
372+
pathspec_from_file = xstrdup("-");
373373
if (nul_term_line)
374374
pathspec_file_nul = 1;
375375
}

0 commit comments

Comments
 (0)