diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-09-10 06:53:34 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-09-10 06:53:34 -0700 |
commit | 3f9c4149bf1bc4d0ad01f96e73bc9033051e8310 (patch) | |
tree | 3702bc60e8482c5e2255d1a53fa077299530248a /lib | |
parent | bdba6ac057eaca8845e0f7894e5f4277fbd9270b (diff) | |
download | dotfiles-3f9c4149bf1bc4d0ad01f96e73bc9033051e8310.tar.gz |
readability
Diffstat (limited to 'lib')
-rw-r--r-- | lib/perl5/Local/MrRepo/Repo/Git.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/perl5/Local/MrRepo/Repo/Git.pm b/lib/perl5/Local/MrRepo/Repo/Git.pm index 18807878..25ebb4e7 100644 --- a/lib/perl5/Local/MrRepo/Repo/Git.pm +++ b/lib/perl5/Local/MrRepo/Repo/Git.pm @@ -59,7 +59,7 @@ sub review { $self->git->symbolic_ref({ quiet => 1 }, "HEAD"); } catch { if ($_->status == 1) { # HEAD is detached - my $commit = ($self->git->rev_parse('HEAD^{commit}'))[0]; + my ($commit) = $self->git->rev_parse('HEAD^{commit}'); my @containing_refs = $self->git->for_each_ref({ contains => $commit }, "refs/heads", "refs/remotes"); |