]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
Match just the manifest lines that start with sha-1 for the refs
authorroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
committerroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
git-remote-gcrypt

index c2eea8f8dd349413e0de2daf37d7bfe83988b965..89b6667575a3eb8d3156d37ba033b75a80c09d0e 100755 (executable)
@@ -147,7 +147,7 @@ ensure_connected()
                return
        fi
        MANIFESTDATA="$(GET_OR_EMPTY "$URL" manifest | DECRYPT)"
-       BRANCHLIST=$(printf "%s\n" "$MANIFESTDATA" | (grep -v '^pack ' || :))
+       BRANCHLIST=$(printf "%s\n" "$MANIFESTDATA" | (grep -E '^[0-9a-f]{40}' || :))
        PACKLIST=$(printf "%s\n" "$MANIFESTDATA" | (grep '^pack ' || :))
 }