[Libreoffice-commits] .: g

Michael Meeks michael at kemper.freedesktop.org
Mon Oct 31 08:05:56 PDT 2011


 g |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 2ed58be87924acc4aec81407ba93641afe776b35
Author: Michael Meeks <michael.meeks at suse.com>
Date:   Mon Oct 31 15:03:56 2011 +0000

    make --last-working checkout the last working version
    
    thanks to Bjoern and Christian for tips.

diff --git a/g b/g
index 66c1cb2..f09caf0 100755
--- a/g
+++ b/g
@@ -242,7 +242,13 @@ for REPO in $DIRS ; do
     elif [ -d "$DIR" -a "z$LAST_WORKING" != "z" ]; then
        echo "fetching notes for $REPO ..."
        (cd $DIR && git fetch origin 'refs/notes/*:refs/notes/*')
-       # FIXME: we need to grep the git log for a known good note name...
+       hash=`(cd $DIR && git log --pretty='%H %N' | grep 'win32 working build' | head -n1 | sed 's/ win32.*//')`
+       if test "z$hash" != "z"; then
+	   echo "update to $hash"
+	   (cd $DIR && git checkout $hash)
+       else
+	   echo "Warning: missing known working note on repo $REPO"
+       fi
     elif [ -d "$DIR" -a "z$SET_LAST_WORKING" != "z" ]; then
        echo "fetching notes for $REPO ..."
        (cd $DIR && git fetch origin 'refs/notes/*:refs/notes/*')


More information about the Libreoffice-commits mailing list