From: Mirko Vogt Date: Tue, 24 Apr 2012 18:19:16 +0000 (+0000) Subject: re-enable shallow git clones ('--depth 1') X-Git-Tag: reboot~14151 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1f489e40842a7afe21b01a4bb4533edb00f31071;p=openwrt%2Fstaging%2Fjogo.git re-enable shallow git clones ('--depth 1') SVN-Revision: 31469 --- diff --git a/scripts/feeds b/scripts/feeds index b423d8ee1a..1b7aab79cc 100755 --- a/scripts/feeds +++ b/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'"},