|
|
@@ -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 --depth 1 '%s' '%s' && cd '%s' && git fetch --depth=1 origin '%s' && git -c advice.detachedHead=false checkout '%s' && cd -",
|
|
|
'update' => "git pull --ff-only",
|
|
|
'update_rebase' => "git pull --rebase=merges",
|
|
|
'update_stash' => "git pull --rebase=merges --autostash",
|