From: root Date: Thu, 14 Feb 2013 00:00:00 +0000 (+0000) Subject: Fix bug in do_fetch, skip empty line X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=b9501e5b25d08a9024e434ecd5aaa9071c372ae1;p=gamesguru%2Fgit-remote-gcrypt.git Fix bug in do_fetch, skip empty line --- 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" ]