Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/git-clone-related-test/test-git-clone-related.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ clonedrepo=$(git -C "$resultdir" config --get remote.origin.url)
# git 2.22 and later has `git branch --show-current`; CircleCI doesn't have that version yet.
clonedbranch=$(git -C "$resultdir" rev-parse --abbrev-ref HEAD)

rm -rf "$startdir" "$resultdir"

if [ "$clonedrepo" != "$GOAL_REPO" ]; then
echo "error: test-git-clone-related.sh \"$1\" \"$2\" \"$3\" \"$4\" \"$5\""
echo "error: expected repo $GOAL_REPO, got: $clonedrepo"
Expand All @@ -55,3 +53,6 @@ if [ "$clonedbranch" != "$GOAL_BRANCH" ]; then
echo "error: expected branch $GOAL_BRANCH, got: $clonedbranch"
exit 2
fi

# This comes after the failure exits, so we don't clean up if the test fails.
rm -rf "$startdir" "$resultdir"