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:
13
perl/Git.pm
13
perl/Git.pm
@ -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 ()
|
||||
|
||||
|
Reference in New Issue
Block a user