mirror of
https://dev.iopsys.eu/iopsys/iopsyswrt.git
synced 2025-12-20 00:52:33 +08:00
scripts: Checkout feeds in detached head state when commit is specified in feeds.conf.
This commit is contained in:
@@ -157,7 +157,7 @@ my %update_method = (
|
||||
'src-git' => {
|
||||
'init' => "git clone --depth 1 '%s' '%s'",
|
||||
'init_branch' => "git clone --depth 1 --branch '%s' '%s' '%s'",
|
||||
'init_commit' => "git clone '%s' '%s' && cd '%s' && git checkout -b '%s' '%s' && cd -",
|
||||
'init_commit' => "git clone '%s' '%s' && cd '%s' && git checkout '%s' && cd -",
|
||||
'update' => "git pull --ff",
|
||||
'update_force' => "git pull --ff || (git reset --hard HEAD; git pull --ff; exit 1)",
|
||||
'post_update' => "git submodule update --init --recursive",
|
||||
@@ -166,7 +166,7 @@ my %update_method = (
|
||||
'src-git-full' => {
|
||||
'init' => "git clone '%s' '%s'",
|
||||
'init_branch' => "git clone --branch '%s' '%s' '%s'",
|
||||
'init_commit' => "git clone '%s' '%s' && cd '%s' && git checkout -b '%s' '%s' && cd -",
|
||||
'init_commit' => "git clone '%s' '%s' && cd '%s' && git checkout '%s' && cd -",
|
||||
'update' => "git pull --ff",
|
||||
'update_force' => "git pull --ff || (git reset --hard HEAD; git pull --ff; exit 1)",
|
||||
'post_update' => "git submodule update --init --recursive",
|
||||
|
||||
Reference in New Issue
Block a user