Skip to content

Commit 105e1f6

Browse files
committed
test(run-test-suite): fix git configuration for base example project
1 parent b3986d6 commit 105e1f6

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tests/run.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,25 @@ create_example_project() {
2222
mkdir -vp "$(dirname "$EXAMPLE_PROJECT_DIR")"
2323
cp -r "${EXAMPLE_PROJECT_BASE_DIR}" "$EXAMPLE_PROJECT_DIR"
2424

25-
pushd "$EXAMPLE_PROJECT_DIR" >/dev/null || return 1
2625
log "Constructing git history in repository"
26+
pushd "$EXAMPLE_PROJECT_DIR" >/dev/null || return 1
27+
28+
# Initialize and configure git (remove any signature requirements)
2729
git init
30+
git config --local user.email "[email protected]"
31+
git config --local user.name "developer"
32+
git config --local commit.gpgSign false
33+
git config --local tag.gpgSign false
34+
git remote add origin "https://github.com/python-semantic-release/example-project.git"
35+
36+
# Create initial commit and tag
2837
git add .
2938
git commit -m "Initial commit"
30-
git remote add origin "https://github.com/python-semantic-release/example-project.git"
3139

40+
# set default branch to main
41+
git branch -m main
42+
43+
# Create the first release (with commit & tag)
3244
cat <<EOF >pyproject.toml
3345
[project]
3446
name = "example"

0 commit comments

Comments
 (0)