Message ID | 83d532528bce7cb475833a504a244aa945fe048d.1629509531.git.congdanhqx@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 1549577338c7c3a4455e9b3f05f9c8740b8e5337 |
Headers | show |
Series | t6300: clear warning when running without gpg | expand |
diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh index 93126341b3..80679d5e12 100755 --- a/t/t6300-for-each-ref.sh +++ b/t/t6300-for-each-ref.sh @@ -66,7 +66,9 @@ test_atom() { case $type in tag) # We cannot use $3 as it expects sanitize_pgp to run - expect=$(git cat-file tag $ref | tail -n +6 | wc -c) ;; + git cat-file tag $ref >out && + expect=$(tail -n +6 out | wc -c) && + rm -f out ;; tree | blob) expect="" ;; commit)