]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
Fix do_list to not break when branchlist is empty
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 6ee3a892c466ff909b4f1d7c5a841ef3d020eed7..131515a26a5250f8a8f0b9ba1d19c2e8cdf30b03 100755 (executable)
@@ -169,6 +169,7 @@ do_list()
 
        printf "%s\n" "$BRANCHLIST" | while read LINE
        do
+               [ -z "$LINE" ] && break
                OBJID=${LINE%% *}
                REFNAME=${LINE##* }
                echo "$OBJID" "$REFNAME"