X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Fgitrepo-edit;h=d4183f1e95f1dcf4a3490e6ce388bec34b12873d;hb=4cc40918b8c3e91f7cd3f0af067d9df270bfee66;hp=b1d60770481e56387e48b98211053300eecec3d6;hpb=cf626a98aadd11b43a289dc18e18edb7eae105e6;p=dgit.git diff --git a/tests/gitrepo-edit b/tests/gitrepo-edit index b1d60770..d4183f1e 100755 --- a/tests/gitrepo-edit +++ b/tests/gitrepo-edit @@ -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"