|
@@ -167,8 +167,8 @@ my %update_method = (
|
|
'init' => "git clone '%s' '%s'",
|
|
'init' => "git clone '%s' '%s'",
|
|
'init_branch' => "git clone --branch '%s' '%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 -b '%s' '%s' && cd -",
|
|
- 'update' => "git pull --ff",
|
|
|
|
- 'update_force' => "git pull --ff || (git reset --hard HEAD; git pull --ff; exit 1)",
|
|
|
|
|
|
+ 'update' => "git pull --ff-only",
|
|
|
|
+ 'update_force' => "git pull --ff-only || (git reset --hard HEAD; git pull --ff-only; exit 1)",
|
|
'post_update' => "git submodule update --init --recursive",
|
|
'post_update' => "git submodule update --init --recursive",
|
|
'controldir' => ".git",
|
|
'controldir' => ".git",
|
|
'revision' => "git rev-parse --short HEAD | tr -d '\n'"},
|
|
'revision' => "git rev-parse --short HEAD | tr -d '\n'"},
|