Commit 91cbcdd0 authored by Michal Sojka's avatar Michal Sojka

Ensure that ae branch commits have the same Author Date as source commits

parent 091c5155
Pipeline #3067 failed with stages
......@@ -68,6 +68,7 @@ handle_commit() {
if [ -z "$ae" ] || ! git diff-tree --quiet $ae $new_tree; then
export GIT_AUTHOR_NAME="$(git log --format=%an -1 $commit)"
export GIT_AUTHOR_EMAIL="$(git log --format=%ae -1 $commit)"
export GIT_AUTHOR_DATE="$(git log --format=%aI -1 $commit)"
[ "$ae" ] && parent="-p $ae"
new_commit=$(git commit-tree $new_tree $parent -m "$(git cat-file commit $commit|sed -e '0,/^$/d')")
git update-ref refs/heads/ae $new_commit $ae
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment