Skip to content

Commit

Permalink
Merge pull request #464 - Gustav Westling's Workspace
Browse files Browse the repository at this point in the history
api/pkg/change/service: set git user in the git config when generating testdata

Merged via Sturdy
  • Loading branch information
zegl authored Feb 18, 2022
2 parents d80b22a + 44f30db commit dde3f91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/pkg/change/service/testdata/generate-repo.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

set -euo pipefail
set -x

# generate-repo.sh generates a small git repository with some minor history
# The output is deterministic, and all commit IDs are always the same
Expand Down Expand Up @@ -61,6 +62,9 @@ set -euo pipefail

pushd "$1"

git config user.email "[email protected]"
git config user.name "Sturdy Testdata"

# This script is expected to be executed in a repository initialized from CreateBareRepoWithRootCommit and CloneRepo
git checkout -b tmp
git branch -D sturdytrunk
Expand Down

0 comments on commit dde3f91

Please sign in to comment.