Merge branch 'tg/rerere'
[gitweb.git] / t / t9200-git-cvsexportcommit.sh
index cd61288aa1a9476819bd9b19b888e9e1b75f1da5..c5946cb0b8a94cfc8c4e2a30284c3343acb8e876 100755 (executable)
@@ -43,11 +43,11 @@ check_entries () {
        sed -ne '/^\//p' "$1/CVS/Entries" | sort | cut -d/ -f2,3,5 >actual
        if test -z "$2"
        then
-               >expected
+               test_must_be_empty actual
        else
                printf '%s\n' "$2" | tr '|' '\012' >expected
+               test_cmp expected actual
        fi
-       test_cmp expected actual
 }
 
 test_expect_success \