Skip to content

Commit b274cd4

Browse files
committed
Fix the Ant build.xml file for when a specific commit is checked out.
If you're not on a branch, but have checked out a specific commit, it would fail to build (with current version of Ant).
1 parent 6d3d824 commit b274cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
otherwise the property will remain unset. This only runs if inGit -->
4949
<condition property="HEADishash">
5050
<length when="equal" length="41">
51-
<fileset dir="." includes=".git/HEAD">
51+
<fileset dir=".git" includes="HEAD">
5252
<containsregexp expression="[0-9a-f]{40}"/>
5353
</fileset>
5454
</length>

0 commit comments

Comments
 (0)