Merge branch 'np/pack'
[gitweb.git] / git-ls-remote.sh
index 8ea5c5e816c067db88f04bc5a0613ca1dbb13456..a6ed99a7c52ac557b01e4dbf271abdf5b9a18b4b 100755 (executable)
@@ -89,8 +89,13 @@ rsync://* )
        ;;
 
 * )
-       git-peek-remote $exec "$peek_repo" ||
+       if test -f "$peek_repo" ; then
+               git bundle list-heads "$peek_repo" ||
                echo "failed    slurping"
+       else
+               git-peek-remote $exec "$peek_repo" ||
+               echo "failed    slurping"
+       fi
        ;;
 esac |
 sort -t '      ' -k 2 |