diff options
author | root <root@localhost> | 2013-02-14 00:00:00 +0000 |
---|---|---|
committer | root <root@localhost> | 2013-02-14 00:00:00 +0000 |
commit | 8d5da3bc7e5209ec4052fdcdaec302bc09e12b3c (patch) | |
tree | b930a5f2a884db08101031e2d3c203c84e40b7ea /git-remote-gcrypt | |
parent | 18e9ad1121da2534161b73b8bfd71742394be93c (diff) | |
download | git-remote-gcrypt-8d5da3bc7e5209ec4052fdcdaec302bc09e12b3c.tar.gz |
Match just the manifest lines that start with sha-1 for the refs
Diffstat (limited to 'git-remote-gcrypt')
-rwxr-xr-x | git-remote-gcrypt | 2 |
1 files changed, 1 insertions, 1 deletions
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 ' || :)) } |