[postgis-tickets] [SCM] PostGIS; Spatial objects for PostgreSQL. branch master updated. 3e7036e0ac47834cdac6f02672b3ce4c6967183d

git at osgeo.org git at osgeo.org
Tue Oct 29 05:27:09 PDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS; Spatial objects for PostgreSQL.".

The branch, master has been updated
       via  3e7036e0ac47834cdac6f02672b3ce4c6967183d (commit)
      from  188c3573e7fc1911c7dbec65dd5987beec716f2a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3e7036e0ac47834cdac6f02672b3ce4c6967183d
Author: Sandro Santilli <strk at kbt.io>
Date:   Tue Oct 29 13:26:08 2019 +0100

    Still use "0" as the "unknown revision", to avoid an empty macro
    
    .. and worst, an header file with trailing space !
    
    See https://gitlab.com/postgis/postgis/pipelines/92241204

diff --git a/utils/repo_revision.pl b/utils/repo_revision.pl
index 9ee2597..cceeb2e 100755
--- a/utils/repo_revision.pl
+++ b/utils/repo_revision.pl
@@ -36,7 +36,7 @@ sub read_rev_git {
   my $git_exe = `which git`;
   if ( ! $git_exe ) {
     print STDERR "Can't determine revision: no git executable found\n";
-    return "";
+    return 0;
   }
   chop($git_exe);
 
@@ -46,7 +46,7 @@ sub read_rev_git {
 
   if ( ! $rev ) {
     print STDERR "Can't determine revision from git log\n";
-    $rev = "";
+    $rev = 0;
   } else {
     chop($rev);
   }
@@ -67,7 +67,7 @@ sub write_defn {
       $oldrev = $1;
     }
     close(IN);
-    if ( $rev eq "" or $rev eq $oldrev ) {
+    if ( $rev eq "0" or $rev eq $oldrev ) {
       print STDERR "Not updating existing rev file at $oldrev\n";
       return;
     }

-----------------------------------------------------------------------

Summary of changes:
 utils/repo_revision.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
PostGIS; Spatial objects for PostgreSQL.


More information about the postgis-tickets mailing list