Use hardcoded author and committer names in tests
[stgit] / t / test-lib.sh
index 4bb00fb..5e4c7a1 100644 (file)
@@ -20,11 +20,11 @@ unset COMMIT_AUTHOR_NAME
 unset EMAIL
 unset GIT_ALTERNATE_OBJECT_DIRECTORIES
 unset GIT_AUTHOR_DATE
-#GIT_AUTHOR_EMAIL=author@example.com
-#GIT_AUTHOR_NAME='A U Thor'
+GIT_AUTHOR_EMAIL=author@example.com
+GIT_AUTHOR_NAME='A U Thor'
 unset GIT_COMMITTER_DATE
-#GIT_COMMITTER_EMAIL=committer@example.com
-#GIT_COMMITTER_NAME='C O Mitter'
+GIT_COMMITTER_EMAIL=committer@example.com
+GIT_COMMITTER_NAME='C O Mitter'
 unset GIT_DIFF_OPTS
 unset GIT_DIR
 unset GIT_EXTERNAL_DIFF
@@ -228,7 +228,7 @@ test_create_repo () {
        cd "$repo" || error "Cannot setup test environment"
        git-init >/dev/null 2>&1 ||
        error "cannot run git-init -- have you installed git-core?"
-       mv .git/hooks .git/hooks-disabled
+       mkdir .git/info
        echo "empty start" |
        git-commit-tree `git-write-tree` >.git/refs/heads/master 2>&4 ||
        error "cannot run git-commit -- is your git-core functioning?"
@@ -261,8 +261,9 @@ test_done () {
 # t/ subdirectory and are run in trash subdirectory.
 PATH=$(pwd)/..:$PATH
 HOME=$(pwd)/trash
+GIT_TEMPLATE_DIR=$(pwd)/../templates
 GIT_CONFIG=.git/config
-export PATH HOME GIT_CONFIG
+export PATH HOME GIT_TEMPLATE_DIR GIT_CONFIG
 
 
 # Test repository