Skip to content

Commit

Permalink
Fix nested my
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Sep 27, 2016
1 parent f8c8370 commit 3f434ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Revision history for {{$dist->name}}

{{$NEXT}}
- Fix nested my declaration (Thanks for the heads up Slaven Rezić!)
- Switch ::Util to Sub::Exporter::Progressive

0.001000 2014-04-19 00:57:35-05:00 CST6CDT
Expand Down
4 changes: 2 additions & 2 deletions lib/Cogit.pm
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ sub ref_names {
for my $line ($packed_refs->slurp(chomp => 1)) {
next if $line =~ /^#/;
next if $line =~ /^\^/;
my ($sha1, my $name) = split ' ', $line;
my ($sha1, $name) = split ' ', $line;
push @names, $name;
}
}
Expand Down Expand Up @@ -176,7 +176,7 @@ sub ref_sha1 {
my $last_sha1;
for my $line ($packed_refs->slurp(chomp => 1)) {
next if $line =~ /^#/;
my ($sha1, my $name) = split ' ', $line;
my ($sha1, $name) = split ' ', $line;
$sha1 =~ s/^\^//;
$name ||= $last_name;

Expand Down

0 comments on commit 3f434ce

Please sign in to comment.