Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refactoring: Use property with override="false" instead of if to set …

…default value.
  • Loading branch information...
commit 58bc2fdbf9b22b4059ac8c7571dd9431c7993270 1 parent 72001c6
@kasperg kasperg authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 build.xml
View
8 build.xml
@@ -1137,12 +1137,8 @@ Configuration of which installation profile and database to use in done in
<if>
<not><available file="${repo.dir}" /></not>
<then>
- <if>
- <not><isset property="repo.revision"/></not>
- <then>
- <property name="repo.revision" value="HEAD" />
- </then>
- </if>
+ <!-- Set revision to HEAD if not already defined -->
+ <property name="repo.revision" value="HEAD" override="false"/>
<echo>Cloning ${repo.url} ${repo.revision} into ${repo.dir}</echo>
<!-- The [`gitclone` task](http://www.phing.info/docs/guide/stable/chapters/appendixes/AppendixC-OptionalTasks.html#GitCloneTask)
Please sign in to comment.
Something went wrong with that request. Please try again.