Bug#811565: [pkg-go] Bug#811565: [uscan] git mode: allow for scanning repositories without tags
Osamu Aoki
osamu at debian.org
Thu Aug 10 07:34:14 UTC 2017
Hi,
On Thu, Aug 10, 2017 at 08:19:20AM +0200, Michael Stapelberg wrote:
> On Thu, Aug 10, 2017 at 6:50 AM, Osamu Aoki <osamu at debian.org> wrote:
>
> The functionality in the tool is exactly what was already communicated in the
> bug :).
>
> If you need any help with that bug, just let me know.
#1: exact use case example URL. (Project which hopefully exists after 4
years.)
#2 Yes, I see ... but backticks .... I think I need to do it slightly
different
backticks("git", "clone", "--quiet", "--bare", "--depth=1", $url,
$dest);
my $commit_data = backticks("git", "--git-dir=$dest", "log", "-1",
"--date=format:%Y%m%d", "--format=%h %cd");
chomp($commit_data);
$commit_data =~ /^([0-9a-z]{7}) ([0-9]{8})$/m
or die("Invalid git response: $commit_data");
return ($1, $2);
Thank
Osamu
More information about the devscripts-devel
mailing list