Skip to content

Commit b21aa53

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 ed9062a commit b21aa53

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
@@ -373,7 +373,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
373373
set_config_update_recurse_submodules(recurse_submodules);
374374

375375
if (read_from_stdin) {
376-
pathspec_from_file = "-";
376+
pathspec_from_file = xstrdup("-");
377377
if (nul_term_line)
378378
pathspec_file_nul = 1;
379379
}

0 commit comments

Comments
 (0)