re-enable shallow git clones ('--depth 1')

SVN-Revision: 31469
This commit is contained in:
Mirko Vogt 2012-04-24 18:19:16 +00:00
parent 2ebcd4707c
commit 1f489e4084

View file

@ -116,8 +116,8 @@ my %update_method = (
'update' => "", 'update' => "",
'revision' => "echo -n 'local'"}, 'revision' => "echo -n 'local'"},
'src-git' => { 'src-git' => {
'init' => "git clone '%s' '%s'", 'init' => "git clone --depth 1 '%s' '%s'",
'init_branch' => "git clone --branch '%s' '%s' '%s'", 'init_branch' => "git clone --depth 1 --branch '%s' '%s' '%s'",
'update' => "git pull", 'update' => "git pull",
'controldir' => ".git", 'controldir' => ".git",
'revision' => "git show --abbrev-commit HEAD | head -n 1 | cut -d ' ' -f 2 | tr -d '\n'"}, 'revision' => "git show --abbrev-commit HEAD | head -n 1 | cut -d ' ' -f 2 | tr -d '\n'"},