Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
test-bzr.sh, test-hg.sh: allow running from any dir
[gitweb.git]
/
contrib
/
remote-helpers
/
test-hg.sh
diff --git
a/contrib/remote-helpers/test-hg.sh
b/contrib/remote-helpers/test-hg.sh
index 72f745d63f2f225b4976b27875d726b4652198ed..fa7d17b224b4746928fb3def60a4d4f7b608a9d1 100755
(executable)
--- a/
contrib/remote-helpers/test-hg.sh
+++ b/
contrib/remote-helpers/test-hg.sh
@@
-8,7
+8,8
@@
test_description='Test remote-hg'
-. ./test-lib.sh
+test -n "$TEST_DIRECTORY" || TEST_DIRECTORY=${0%/*}/../../t
+. "$TEST_DIRECTORY"/test-lib.sh
if ! test_have_prereq PYTHON
then