소스 검색

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

SVN-Revision: 31469
Mirko Vogt 13 년 전
부모
커밋
1f489e4084
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      scripts/feeds

+ 2 - 2
scripts/feeds

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