aboutsummaryrefslogtreecommitdiffhomepage
path: root/git-remote-gcrypt
diff options
context:
space:
mode:
authorroot <root@localhost>2013-02-14 00:00:00 +0000
committerroot <root@localhost>2013-02-14 00:00:00 +0000
commitb9501e5b25d08a9024e434ecd5aaa9071c372ae1 (patch)
treeae95cdae94ca7d44c32fc4a164710ca600a1e698 /git-remote-gcrypt
parent3b95011da61b9a3c3288f8c8658efa3fc1260cb0 (diff)
downloadgit-remote-gcrypt-b9501e5b25d08a9024e434ecd5aaa9071c372ae1.tar.gz
Fix bug in do_fetch, skip empty line
Diffstat (limited to 'git-remote-gcrypt')
-rwxr-xr-xgit-remote-gcrypt1
1 files changed, 1 insertions, 0 deletions
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" ]