gitlog-to-changelog: fix previous change
authorAkim Demaille <akim@lrde.epita.fr>
Sun, 29 Jul 2012 11:30:12 +0000 (13:30 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sun, 29 Jul 2012 11:32:23 +0000 (13:32 +0200)
* build-aux/gitlog-to-changelog: Fix condition.
Add missing ";".

ChangeLog
build-aux/gitlog-to-changelog

index 6806847..ddd205e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
 
+       gitlog-to-changelog: fix previous change
+       * build-aux/gitlog-to-changelog: Fix condition.
+       Add missing ";".
+
+2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
+
        gitlog-to-changelog: don't expect .git to be in $srcdir
        Reported by Bruno Haible.
        <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
index 60e1c39..5184edc 100755 (executable)
@@ -210,8 +210,8 @@ sub git_dir_option($)
       my $git_dir = qx($cmd);
       defined $git_dir
         or die "$ME: cannot run $qcmd: $!\n";
-      $? != 0
-        or die "$ME: $qcmd had unexpected exit code or signal ($?)\n"
+      $? == 0
+        or die "$ME: $qcmd had unexpected exit code or signal ($?)\n";
       chomp $git_dir;
       push @res, "--git-dir=$git_dir/.git";
     }