#!/bin/bashset -eu -o pipefail # The goal with this repo is to have the smallest commit-graph file possible, in the hopes that an# off-by-one errorexport GIT_AUTHOR_DATE="2000-01-01 00:00:00 +0000"export GIT_AUTHOR_EMAIL=author@example.comexport GIT_AUTHOR_NAME=authorexport GIT_COMMITTER_DATE="2000-01-02 00:00:00 +0000"export GIT_COMMITTER_EMAIL=committer@example.comexport GIT_COMMITTER_NAME=committer mkdir -p "$1"cd "$1"git init -qgit config commit.gpgsign false git checkout -q -b commitgit commit -q --allow-empty -m commit git commit-graph write --no-progress --reachablegit repack -adq
#!/bin/bash
set -eu -o pipefail
# The goal with this repo is to have the smallest commit-graph file possible, in the hopes that an
# off-by-one error
export GIT_AUTHOR_DATE="2000-01-01 00:00:00 +0000"
export GIT_AUTHOR_EMAIL=author@example.com
export GIT_AUTHOR_NAME=author
export GIT_COMMITTER_DATE="2000-01-02 00:00:00 +0000"
export GIT_COMMITTER_EMAIL=committer@example.com
export GIT_COMMITTER_NAME=committer
mkdir -p "$1"
cd "$1"
git init -q
git config commit.gpgsign false
git checkout -q -b commit
git commit -q --allow-empty -m commit
git commit-graph write --no-progress --reachable
git repack -adq