diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-05-27 06:36:57 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-27 06:36:57 +0300 |
commit | f4d715b0acaf008d0f09c42378cac90acaadea8e (patch) | |
tree | e87a3bdac9d479f29c36c5713697631dd530167d /perl | |
parent | 1accb34ce0055b9ab43cdf1a8ef6e22e7ae34ffc (diff) | |
parent | 7cbc0455cc07702c5eeff1062c7e2a820758714f (diff) |
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
Diffstat (limited to 'perl')
-rw-r--r-- | perl/Git.pm | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/perl/Git.pm b/perl/Git.pm index 73ebbf80cc..02eacef0c2 100644 --- a/perl/Git.pm +++ b/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 () |