summaryrefslogtreecommitdiff
path: root/scripts/feeds
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2012-04-24 18:19:16 +0000
committerMirko Vogt <mirko@openwrt.org>2012-04-24 18:19:16 +0000
commit1f489e40842a7afe21b01a4bb4533edb00f31071 (patch)
tree5a975944f4badfd35d4dab9bc4daa4e733a2e1c6 /scripts/feeds
parent2ebcd4707c78e7cea9f2de59cb88214e69fe9c6f (diff)
downloadmtk-20170518-1f489e40842a7afe21b01a4bb4533edb00f31071.zip
mtk-20170518-1f489e40842a7afe21b01a4bb4533edb00f31071.tar.gz
mtk-20170518-1f489e40842a7afe21b01a4bb4533edb00f31071.tar.bz2
re-enable shallow git clones ('--depth 1')
SVN-Revision: 31469
Diffstat (limited to 'scripts/feeds')
-rwxr-xr-xscripts/feeds4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/feeds b/scripts/feeds
index b423d8e..1b7aab7 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'"},