# classes/phing/tasks/ext/git/GitCloneTask.php

## \GitCloneTask
jump to top

Wrapper around git-clone

Use {@link Project#createTask} to register a new Task.

Extends from
  \GitBaseTask
see
  \VersionControl_Git
author
  Victor Farazdagi
copyright
  2001,2002 THYRELL. All rights reserved
package
  phing.tasks.ext.git
since
  2.4.3
version
  $Id: GitCloneTask.php 904 2010-10-05 09:15:19Z victor $

### Properties

`string $isBare= 'false'`

Whether --bare key should be set for git-init

Default value `false` Details

Type
  string

`string $targetPath= ''`

Path to target directory

Details

Type
  string

### Methods

`getBare( ) :`
`getTargetPath( ) : string`
Get path to target direcotry repo
Returns

Type | Description
--- | ---
string |

`isBare( ) : string`
Alias @see getBare()
Returns

Type | Description
--- | ---
string |

`main( ) :`
The main entry point for the task
`setBare( $flag ) :`
Parameters

Name | Type | Description
--- | --- | ---
$flag |  |

`setTargetPath( string $targetPath ) : void`
Set path to source repo
Parameters

Name | Type | Description
--- | --- | ---
$targetPath | string | Path to repository used as source

Documentation was generated by DocBlox 0.13.1.