From: root Date: Thu, 14 Feb 2013 00:00:00 +0000 (+0000) Subject: Fix do_list to not break when branchlist is empty X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=748338589fb09e4c3012ad5a6e915816ed97ab32;p=gamesguru%2Fgit-remote-gcrypt.git Fix do_list to not break when branchlist is empty --- 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"