chiark / gitweb /
Uncommit to a named commit
[stgit] / t / test-lib.sh
index b44a5908245f4820c70772fed2673bdf9a3ab9f0..d50a3badb24008d38fc35a3e2e118e4952a8b505 100755 (executable)
@@ -17,11 +17,11 @@ unset COMMIT_AUTHOR_EMAIL
 unset COMMIT_AUTHOR_NAME
 unset GIT_ALTERNATE_OBJECT_DIRECTORIES
 unset GIT_AUTHOR_DATE
 unset COMMIT_AUTHOR_NAME
 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
 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
 unset GIT_DIFF_OPTS
 unset GIT_DIR
 unset GIT_EXTERNAL_DIFF
@@ -63,6 +63,7 @@ do
                echo "$test_description"
                exit 0 ;;
        -v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
                echo "$test_description"
                exit 0 ;;
        -v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
+               export STGIT_DEBUG_LEVEL="-1"
                verbose=t; shift ;;
        *)
                break ;;
                verbose=t; shift ;;
        *)
                break ;;
@@ -164,7 +165,7 @@ test_create_repo () {
        mv .git/hooks .git/hooks-disabled
        echo "empty start" |
        git-commit-tree `git-write-tree` >.git/refs/heads/master 2>&4 ||
        mv .git/hooks .git/hooks-disabled
        echo "empty start" |
        git-commit-tree `git-write-tree` >.git/refs/heads/master 2>&4 ||
-       error "cannot run git-commit -- is your git-core funtionning?"
+       error "cannot run git-commit -- is your git-core functioning?"
        cd "$owd"
 }
 
        cd "$owd"
 }