mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:52:28 +02:00
[scripts/feeds] re-enable shallow git clones ('--depth 1')
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31469 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0a7068a8d0
commit
8088231dfb
@ -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'"},
|
||||
|
Loading…
Reference in New Issue
Block a user