chiark / gitweb /
Test suite: Move t-reporefs into lib
[dgit.git] / tests / lib
index cf8b72569dfdabc2368c0f49f4762cc4dede8128..5c8293f9b200d1f127c8811b7f875fe6ca5024f0 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -52,6 +52,14 @@ t-expect-fail () {
        egrep "$mpat" $tmp/t.output ||false
 }
 
+t-reporefs () {
+       (set -e
+       if test -d $tmp/git/$p.git; then
+               cd $tmp/git/$p.git
+               git show-ref |sort
+       fi)
+}
+
 t-untar () {
        local tarfile=$1.tar
        local edittree=$1.edit