chiark / gitweb /
tests/lib: set up default control files for drs in t-drs
[dgit.git] / tests / gitrepo-edit
index b1d60770481e56387e48b98211053300eecec3d6..d4183f1e95f1dcf4a3490e6ce388bec34b12873d 100755 (executable)
@@ -12,7 +12,7 @@ case "$arg" in
 *.git.tar)     base=${arg%.tar}                        ;;
 *.git.edit)    base=${arg%.edit}                       ;;
 *.git)         base=${arg}                             ;;
-*)             fail "arg must end in .git[.tar]"       ;;
+*)             fail "arg must end in .git[.tar|.edit]" ;;
 esac
 
 tryat_pre () {
@@ -58,7 +58,7 @@ tryat_done () {
 
 tryat () {
        local b="$1"
-       if ! test -f "$b.tar" && ! test -f "$b.edit"; then
+       if ! test -f "$b.tar" && ! test -d "$b.edit"; then
                return
        fi
        tryat_pre "$b"