Hello, change is now committed on git repo. G.
On Wed, 10 Jan 2024 09:30:18 +0100 Gianfranco Costamagna <[email protected]> wrote:
control: tags -1 patch
hello, I'm attaching something that might be considered as a patch, the problem
was not in the checkout itself, but more in the version log.
--- a/lib/Devscripts/Uscan/git.pm 2023-04-03 01:03:04.000000000 +0200
+++ b/lib/Devscripts/Uscan/git.pm 2024-01-10 09:25:20.808129993 +0100
@@ -83,18 +83,37 @@ sub git_search {
} else {
my $tmp = $ENV{TZ};
$ENV{TZ} = 'UTC';
- spawn(
- exec => [
- 'git',
-"--git-dir=$self->{downloader}->{destdir}/$self->{gitrepo_dir}",
- 'log',
- '-1',
- "--date=format-local:$self->{date}",
- "--pretty=$self->{pretty}"
- ],
- wait_child => 1,
- to_string => \$newversion
- );
+ $newfile = $self->parse_result->{filepattern}; # HEAD or
heads/<branch>
+ if ($self->parse_result->{filepattern} eq 'HEAD') {
+ spawn(
+ exec => [
+ 'git',
+ "--git-dir=$self->{downloader}->{destdir}/$self->{gitrepo_dir}",
+ 'log',
+ '-1',
+ "--date=format-local:$self->{date}",
+ "--pretty=$self->{pretty}"
+ ],
+ wait_child => 1,
+ to_string => \$newversion
+ );
+ } else {
+ $newfile =~ s&^heads/&&; # Set to <branch>
+ spawn(
+ exec => [
+ 'git',
+ "--git-dir=$self->{downloader}->{destdir}/$self->{gitrepo_dir}",
+ 'log',
+ '-1',
+ '-b',
+ "$newfile",
+ "--date=format-local:$self->{date}",
+ "--pretty=$self->{pretty}"
+ ],
+ wait_child => 1,
+ to_string => \$newversion
+ );
+ }
$ENV{TZ} = $tmp;
chomp($newversion);
}
On Mon, 19 Jun 2023 17:40:46 +0200 Fab Stz <[email protected]> wrote:
> Hello,
>
OpenPGP_signature.asc
Description: OpenPGP digital signature

