]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
Fix bug in do_fetch, skip empty line
authorroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
committerroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
git-remote-gcrypt

index c0a44d4caf0e44e139424ea5f00b8f863b39453e..11a018d6c6c03eabf585a2aa17c3b5d3782ebcd2 100755 (executable)
@@ -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" ]