From b9501e5b25d08a9024e434ecd5aaa9071c372ae1 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 14 Feb 2013 00:00:00 +0000 Subject: [PATCH] Fix bug in do_fetch, skip empty line --- git-remote-gcrypt | 1 + 1 file changed, 1 insertion(+) diff --git a/git-remote-gcrypt b/git-remote-gcrypt index c0a44d4..11a018d 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -295,6 +295,7 @@ do_fetch() printf "%s\n" "$PNEED" | while read PACKLINE do + [ -z "$PACKLINE" ] && break PACK=${PACKLINE#"$PACKPFX"} RCVID="$(GET "$URL" "$PACK" | tee "$TMPPACK_ENCRYPTED" | pack_hash)" if [ "$RCVID" != "$PACK" ]