From 748338589fb09e4c3012ad5a6e915816ed97ab32 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 14 Feb 2013 00:00:00 +0000 Subject: [PATCH] Fix do_list to not break when branchlist is empty --- git-remote-gcrypt | 1 + 1 file changed, 1 insertion(+) 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"