Commit 0b2899f84683eeb92e157053cfbb0d3a59dff4a9

Stefan Sperling 2019-08-18T11:26:15

attribute commits created with git(1) in test suite to Flan Hacker

diff --git a/lib/worktree.c b/lib/worktree.c
old mode 100640
new mode 100644
diff --git a/regress/cmdline/common.sh b/regress/cmdline/common.sh
index 0c8a19f..5c3679e 100644
--- a/regress/cmdline/common.sh
+++ b/regress/cmdline/common.sh
@@ -14,7 +14,11 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-export GOT_AUTHOR="Flan Hacker <flan_hacker@openbsd.org>"
+export GIT_AUTHOR_NAME="Flan Hacker"
+export GIT_AUTHOR_EMAIL="flan_hacker@openbsd.org"
+export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
+export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
+export GOT_AUTHOR="$GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL>"
 export GOT_AUTHOR_8="flan_hac"
 export GOT_LOG_DEFAULT_LIMIT=0
 
@@ -22,14 +26,14 @@ export MALLOC_OPTIONS=S
 
 function git_init
 {
-	git init -q "$@"
+	git init -q "$1"
 }
 
 function git_commit
 {
 	local repo="$1"
 	shift
-	(cd $repo && git commit -q -a "$@")
+	(cd $repo && git commit --author="$GOT_AUTHOR" -q -a "$@")
 }
 
 function git_rm
diff --git a/regress/cmdline/revert.sh b/regress/cmdline/revert.sh
old mode 100740
new mode 100755