X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit;h=a25c74c18bf87a25205da4cfa6562e7e4a234205;hp=af3a96a5b824ad2577460c1ede775ca408d9833e;hb=7031bce4c16fea6e76c48753162d07d6aeef3531;hpb=54aa7290e5498423429298dee1de2f013d1576fa diff --git a/dgit b/dgit index af3a96a5..a25c74c1 100755 --- a/dgit +++ b/dgit @@ -1802,8 +1802,11 @@ sub mergeinfo_version ($) { } sub fetch_from_archive () { - # ensures that lrref() is what is actually in the archive, - # one way or another + # Ensures that lrref() is what is actually in the archive, one way + # or another, according to us - ie this client's + # appropritaely-updated archive view. Also returns the commit id. + # If there is nothing in the archive, leaves lrref alone and + # returns undef. get_archive_dsc(); if ($dsc) { @@ -1997,7 +2000,7 @@ But we were not able to obtain any version from the archive or git. END } unshift @end, $del_lrfetchrefs; - return 0; + return undef; } if ($lastfetch_hash && @@ -2148,7 +2151,7 @@ END lrfetchref_used lrfetchref(); unshift @end, $del_lrfetchrefs; - return 1; + return $hash; } sub set_local_git_config ($$) { @@ -2617,6 +2620,8 @@ END $changesfile = "$buildproductsdir/$changesfile"; } + # Checks complete, we're going to try and go ahead: + responder_send_file('changes',$changesfile); responder_send_command("param head $dgithead"); responder_send_command("param csuite $csuite");