chiark / gitweb /
tests: rename tartree-edit from gitrepo-edit
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 26 Feb 2014 16:16:28 +0000 (16:16 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Mar 2014 18:29:07 +0000 (18:29 +0000)
tests/tartree-edit [moved from tests/gitrepo-edit with 86% similarity]

similarity index 86%
rename from tests/gitrepo-edit
rename to tests/tartree-edit
index d4183f1..2e0c017 100755 (executable)
@@ -5,14 +5,13 @@ fail () { echo >&2 "$0: $*"; exit 1; }
 case "$#.$1" in
 2.edit|2.done) mode="$1"; arg="$2" ;;
 2.-*)          fail "no options understood"                    ;;
-*)             fail "usage: gitrepo-edit edit|done DIRECTORY"  ;;
+*)             fail "usage: tartree-edit edit|done DIRECTORY"  ;;
 esac
 
 case "$arg" in
-*.git.tar)     base=${arg%.tar}                        ;;
-*.git.edit)    base=${arg%.edit}                       ;;
-*.git)         base=${arg}                             ;;
-*)             fail "arg must end in .git[.tar|.edit]" ;;
+*.tar)         base=${arg%.tar}                        ;;
+*.edit)                base=${arg%.edit}                       ;;
+*)             base=${arg}                             ;;
 esac
 
 tryat_pre () {