I face problem while checking out the code from Git cloud repository.
Here is the ANT build code
<project name="ProjectX" default="checkoutcode" basedir="." xmlns:git="antlib:com.rimerosolutions.ant.git">
<taskdef uri="antlib:com.rimerosolutions.ant.git"
resource="com/rimerosolutions/ant/git/jgit-ant-lib.xml">
<classpath>
<pathelement location="./external-libs/org.eclipse.jgit.ant-3.0.0.201306101825-r.jar"/>
<pathelement location="./external-libs/org.eclipse.jgit-3.0.0.201306101825-r.jar"/>
<pathelement location="./external-libs/jsch-0.1.50.jar"/>
<pathelement location="./external-libs/ant-git-tasks-0.0.1.jar"/>
</classpath>
</taskdef>
<git:settings refId="git.testing"
username="userx"
password="passx"
name="Rashmin"
email="r@r.com"/>
<target name="checkoutcode">
<git:git directory="c:\documents\projectxsrcbuild" verbose="true" settingsRef="git.testing">
<git:init uri="https://github.com/company/projectx.git" />
<git:checkout branchname="development" />
</git:git>
</target>
</project>
This is the result I get on console
Buildfile: C:\document\git\Platform\build\buildprojectx.xml
check:
init:
[delete] Deleting directory c:\documents\projectxsrcbuild
[mkdir] Created dir: c:\documents\projectxsrcbuild
checkoutcode:
[antlib:com.rimerosolutions.ant.git:checkout] The branch 'development' was not found.
Can any one help me?