Merge branch 'ab/send-email-inline-hooks-path'

Code simplification.

* ab/send-email-inline-hooks-path:
  send-email: move "hooks_path" invocation to git-send-email.perl
  send-email: don't needlessly abs_path() the core.hooksPath
This commit is contained in:
Junio C Hamano
2021-05-27 12:36:57 +09:00
3 changed files with 6 additions and 17 deletions

View File

@ -619,19 +619,6 @@ Return path to the git repository. Must be called on a repository instance.
sub repo_path { $_[0]->{opts}->{Repository} }
=item hooks_path ()
Return path to the hooks directory. Must be called on a repository instance.
=cut
sub hooks_path {
my ($self) = @_;
my $dir = $self->command_oneline('rev-parse', '--git-path', 'hooks');
my $abs = abs_path($dir);
return $abs;
}
=item wc_path ()