1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<?xml version="1.0"?>
<project name="gitInitTest" default="invalid">
<import file="GitTestFunction.xml"/>
<target name="invalid">
<fail>This file should only be run via a testcase</fail>
</target>
<target name="gitInit" description="Initialize normal git repository">
<gitinit gitPath="${git-path}" repository="${tmp.dir.resolved}"/>
</target>
<target name="gitInitBare" description="Initialize bare repository">
<gitinit gitPath="${git-path}" bare="true" repository="${tmp.dir.resolved}"/>
</target>
<target name="wrongRepository" description="Wrong repository directory">
<gitinit gitPath="${git-path}" repository="this-is-plain-wrong"/>
</target>
<target name="noRepository" description="No repo dir argument provided">
<gitinit gitPath="${git-path}" />
</target>
</project>
|