mirror of
https://github.com/git/git.git
synced 2024-11-27 20:14:30 +08:00
When exec() fails include the failing command in the error message
git-svn occasionally fails with no details as to what went wrong - this should help debug those situations. Signed-off-by: Ask Bjørn Hansen <ask@develooper.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
f49439e1e1
commit
6aaa65da20
@ -812,7 +812,7 @@ sub _cmd_exec {
|
||||
$self->wc_subdir() and chdir($self->wc_subdir());
|
||||
}
|
||||
_execv_git_cmd(@args);
|
||||
die "exec failed: $!";
|
||||
die qq[exec "@args" failed: $!];
|
||||
}
|
||||
|
||||
# Execute the given Git command ($_[0]) with arguments ($_[1..])
|
||||
|
Loading…
Reference in New Issue
Block a user