Match just the manifest lines that start with sha-1 for the refs

This commit is contained in:
root 2013-02-14 00:00:00 +00:00
parent 18e9ad1121
commit 8d5da3bc7e

View file

@ -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 ' || :))
}