Skip to content

Commit

Permalink
Merge branch 'main' into update-import
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-schesch committed Apr 29, 2024
2 parents e06aee2 + 6ae7ec2 commit ee9624f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ clean-cache:
# This target deletes files in the test cache.
clean-test-cache:
rm -rf cache-small
rm -f cache-small.tar

# This target deletes files that are committed to version control.
clean-stored-hashes:
Expand Down
13 changes: 13 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,19 @@ PATH=$(pwd)/src/scripts/merge_tools/:$PATH
PATH=$(pwd)/src/scripts/merge_tools/merging/src/main/sh/:$PATH
export PATH

echo "Checking for custom merge drivers in global configuration..."
merge_drivers=$(git config --global --get-regexp '^merge\..*\.driver$' || echo "No merge drivers set")

if [ "$merge_drivers" == "No merge drivers set" ]; then
echo "No custom merge drivers found in global configuration. Proceeding with the evaluation."
# Include other commands to continue the script here
else
echo "Error: Custom merge drivers are set in global configuration."
echo "Please unset them before running the evaluation."
echo "Merge driver found: $merge_drivers"
exit 1
fi

# Check if cache.tar exists and cache is missing
if [ -f cache.tar ] && [ ! -d cache ]; then
echo "Decompressing cache.tar"
Expand Down

0 comments on commit ee9624f

Please sign in to comment.