last if $branch ne 'undefined';
}
for ($branch) {
- $_ ||= "error"; # hmm, we didnt get /anything/ from name-rev?
+ $_ ||= "error"; # hmm, we did not get /anything/ from name-rev?
s!^\Q$reftype\E/!! || # strip off the reftype
s!^refs/heads/!! || # possible other places it was found
s!^refs/remotes/!! || # ...
s![~^].*\z!!; # strip off how far we are from the item
}
my $tstamp= iso_time_with_dot(`git log -1 --pretty="format:%ct" $sha1`);
- chomp(my $describe= `git describe`);
+ chomp(my $describe= `git describe $sha1`);
join(" ", $branch, $tstamp, $sha1, $describe);
}