Use a more general regex to test GIT commits; GIT's output has changed.
authorChris Ball <cjb@thunk.printf.net>
Sat, 13 Jun 2009 12:43:28 +0000 (08:43 -0400)
committerChris Ball <cjb@thunk.printf.net>
Sat, 13 Jun 2009 12:43:28 +0000 (08:43 -0400)
libbe/git.py

index 046e72e2bb4a4e77f18e0c21879e98d08df29cf1..2bb5c59d817f5a3f46472a6e8d4f4a94f29a51e2 100644 (file)
@@ -85,7 +85,7 @@ class Git(RCS):
         status,output,error = self._u_invoke_client('commit', '-a',
                                                     '-F', commitfile)
         revision = None
-        revline = re.compile("Created (.*)commit (.*):(.*)")
+        revline = re.compile("(.*) (.*)[:\]] (.*)")
         match = revline.search(output)
         assert match != None, output+error
         assert len(match.groups()) == 3