<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 10, 2017 at 9:34 AM, Osamu Aoki <span dir="ltr"><<a href="mailto:osamu@debian.org" target="_blank">osamu@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<span class="gmail-"><br>
On Thu, Aug 10, 2017 at 08:19:20AM +0200, Michael Stapelberg wrote:<br>
> On Thu, Aug 10, 2017 at 6:50 AM, Osamu Aoki <<a href="mailto:osamu@debian.org">osamu@debian.org</a>> wrote:<br>
><br>
</span><span class="gmail-">> The functionality in the tool is exactly what was already communicated in the<br>
> bug :).<br>
><br>
> If you need any help with that bug, just let me know.<br>
<br>
</span>#1: exact use case example URL.  (Project which hopefully exists after 4<br>
years.)<br></blockquote><div><br></div><div>Here’s an example: <a href="https://github.com/Debian/dh-make-golang/">https://github.com/Debian/dh-make-golang/</a>. The corresponding Debian binary package is <a href="https://packages.debian.org/buster/dh-make-golang">https://packages.debian.org/buster/dh-make-golang</a>; there’s no debian/watch file yet because of the current lack of support for git :).<br></div><div><br></div><div>Please let me know if you need anything else. Thanks!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
#2 Yes, I see ... but backticks .... I think I need to do it slightly<br>
different<br>
<br>
backticks("git", "clone", "--quiet", "--bare", "--depth=1", $url,<br>
    $dest);<br>
<br>
my $commit_data = backticks("git", "--git-dir=$dest", "log", "-1",<br>
    "--date=format:%Y%m%d", "--format=%h %cd");<br>
<br>
chomp($commit_data);<br>
$commit_data =~ /^([0-9a-z]{7}) ([0-9]{8})$/m<br>
    or die("Invalid git response: $commit_data");<br>
return ($1, $2);<br>
<br>
Thank<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
Osamu<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Best regards,<br>Michael</div>
</div></div>