Skip to content

Commit a5e016e

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Check that we do not revert 3rdParty by accident
Some people checked in changes to 3rdParty that were not intended. This commit checks that all new commits use the old hash or a more recent one.
1 parent 5bcd7ee commit a5e016e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile.common

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,5 +450,6 @@ git-sanity-check: git-clean
450450
test "./Compiler/boot/bootstrap-sources.tar.xz" = "`find . -type f -size +684k | grep -v 3rdParty`"
451451
for commit in `git rev-list origin/master..HEAD`; do \
452452
(! git ls-tree --name-only -r $$commit | egrep "(.*[.](html|png|svg|o|so|la|stamp|a|dll|exe|cab|lnk|msi|log|class|jar|pyc|db|zip|DS_Store|pdf|tex|md5|dep)$$)|SimulationRuntime/cpp/Doc") || exit 1; \
453+
(MASTER=`git ls-tree origin/master 3rdParty | grep -E -o "[0-9a-f]{40}"` && HASH=`git ls-tree $$commit 3rdParty | grep -E -o "[0-9a-f]{40}"` && cd 3rdParty && (test -z "`git rev-list $$HASH..$$MASTER`" || echo "ERROR: Commit is reverting 3rdParty to an older commit. This is probably not intended.")) \
453454
done
454455
! (git rev-list origin/master..HEAD | xargs git grep "Generated by Susan" -- Compiler/Template)

0 commit comments

Comments
 (0)