handle git-notes breakage
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 20 Jan 2010 04:42:04 +0000 (23:42 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 20 Jan 2010 04:42:04 +0000 (23:42 -0500)
The new git-notes feature in git 1.6.6 changes git log output in a way that
broke ikiwiki's parser if notes are added to commits.

I decided to deal with this by disabling notes when ikiwiki uses git,
by setting GIT_NOTES_REF="". AFAICS, looking up notes when dumping logs
will only waste time, since it does not currently seem to make sense for
ikiwiki to do anything with the notes.

IkiWiki/Plugin/git.pm
debian/changelog

index 786c7b1f246652d5d0ba73ec0f839535be5e7430..1eec6aee61eaf2c28e0e2187236dcec02db95ca9 100644 (file)
@@ -51,6 +51,9 @@ sub checkconfig () {
                        wrappermode => (defined $config{git_wrappermode} ? $config{git_wrappermode} : "06755"),
                };
        }
+
+       # Avoid notes, parser does not handle and they only slow things down.
+       $ENV{GIT_NOTES_REF}="";
        
        # Run receive test only if being called by the wrapper, and not
        # when generating same.
index f17eed3e53ebcbf1b8ae8b60ab7561df528a86b2..6fbbe0a238a7e209f7e222e72bde95d46f87a972 100644 (file)
@@ -10,6 +10,9 @@ ikiwiki (3.20100104) UNRELEASED; urgency=low
   * websetup: Fix bug in array change detection.
   * linkmap: Simplify and improve browser compatability by using an img, 
     not object tag.
+  * git: The new git-notes feature in git 1.6.6 changes git log output
+    in a way that broke ikiwiki's parser if notes are added to commits.
+    Deal with this.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 04 Jan 2010 12:53:24 -0500