diff --git a/git-remote-gcrypt b/git-remote-gcrypt index 6ee3a89..131515a 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -169,6 +169,7 @@ do_list() printf "%s\n" "$BRANCHLIST" | while read LINE do + [ -z "$LINE" ] && break OBJID=${LINE%% *} REFNAME=${LINE##* } echo "$OBJID" "$REFNAME"