diff options
Diffstat (limited to 'gitautodeploy/wrappers/git.py')
-rw-r--r-- | gitautodeploy/wrappers/git.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gitautodeploy/wrappers/git.py b/gitautodeploy/wrappers/git.py index e600d9e..3b1bd45 100644 --- a/gitautodeploy/wrappers/git.py +++ b/gitautodeploy/wrappers/git.py @@ -30,8 +30,7 @@ class GitWrapper(): else: commands.append('unset GIT_DIR') - commands.append('git fetch ' + repo_config['remote']) - commands.append('git reset --hard ' + repo_config['remote'] + '/' + repo_config['branch']) + commands.append('git checkout -f -B ' + repo_config['branch'] + ' -t ' + repo_config['remote'] + '/' + repo_config['branch']) commands.append('git submodule update --init --recursive') #commands.append('git update-index --refresh') |