attribute commits created with git(1) in test suite to Flan Hacker
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
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