Browse Source

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>
maint
Ask Bjørn Hansen 17 years ago committed by Junio C Hamano
parent
commit
6aaa65da20
  1. 2
      perl/Git.pm

2
perl/Git.pm

@ -812,7 +812,7 @@ sub _cmd_exec { @@ -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…
Cancel
Save