From: root Date: Thu, 14 Feb 2013 00:00:00 +0000 (+0000) Subject: Match just the manifest lines that start with sha-1 for the refs X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=8d5da3bc7e5209ec4052fdcdaec302bc09e12b3c;p=gamesguru%2Fgit-remote-gcrypt.git Match just the manifest lines that start with sha-1 for the refs --- diff --git a/git-remote-gcrypt b/git-remote-gcrypt index c2eea8f..89b6667 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -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 ' || :)) }