We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12519cf commit 0f749f5Copy full SHA for 0f749f5
regression/scaffold
@@ -82,7 +82,13 @@ function setup_git_repo
82
echo "abc" > def
83
git add def
84
git commit -s -m "initial" 2> /dev/null > /dev/null
85
- # the commit should be d4850419ccc1146c7169f500725ce504b9774ed0
+
86
+ # The HEAD should be a specific hash. Abort the test if it is not.
87
+ # If we kept on executing, the test would just fail in mysterious
88
+ # ways.
89
+ rev=`git rev-parse HEAD`
90
+ [ "d4850419ccc1146c7169f500725ce504b9774ed0" != "$rev" ] && \
91
+ die "setup_git_repo HEAD check failed (HEAD: $rev)"
92
93
# Explicitly set config that the tests rely on.
94
git config log.date default
0 commit comments