Skip to content

Commit 5482fb9

Browse files
dschomjcheetham
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 cd37105 commit 5482fb9

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

362362
if (read_from_stdin) {
363-
pathspec_from_file = "-";
363+
pathspec_from_file = xstrdup("-");
364364
if (nul_term_line)
365365
pathspec_file_nul = 1;
366366
}

0 commit comments

Comments
 (0)