chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: gitrepo-edit: seems to work
[dgit.git]
/
tests
/
gitrepo-edit
diff --git
a/tests/gitrepo-edit
b/tests/gitrepo-edit
index b1d60770481e56387e48b98211053300eecec3d6..d4183f1e95f1dcf4a3490e6ce388bec34b12873d 100755
(executable)
--- 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} ;;
*.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 () {
esac
tryat_pre () {
@@
-58,7
+58,7
@@
tryat_done () {
tryat () {
local b="$1"
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"
return
fi
tryat_pre "$b"