]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5801/git-remote-testgit
transport-helper: send "true" value for object-format option
[thirdparty/git.git] / t / t5801 / git-remote-testgit
index bcfb358c51cc087efd75aa04488f9b16a75e7293..c5b10f57751b259f297be3c4dcb673f32994017b 100755 (executable)
@@ -30,6 +30,7 @@ GIT_DIR="$url/.git"
 export GIT_DIR
 
 force=
+object_format=
 
 mkdir -p "$dir"
 
@@ -61,7 +62,8 @@ do
                echo
                ;;
        list)
-               echo ":object-format $(git rev-parse --show-object-format=storage)"
+               test -n "$object_format" &&
+                       echo ":object-format $(git rev-parse --show-object-format=storage)"
                git for-each-ref --format='? %(refname)' 'refs/heads/' 'refs/tags/'
                head=$(git symbolic-ref HEAD)
                echo "@$head HEAD"