summaryrefslogtreecommitdiffstats
path: root/nikola/plugins/command/github_deploy.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2014-10-21 10:33:15 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2014-10-21 10:33:15 -0300
commit5ec02211214350ee558fd9f6bb052264fd24f75e (patch)
treeb61e8c61a95d18a91d053e71dcbd7b30e47552a1 /nikola/plugins/command/github_deploy.py
parent58c4878526dec5510f23c812274686787d8724ba (diff)
Imported Upstream version 7.1.0upstream/7.1.0
Diffstat (limited to 'nikola/plugins/command/github_deploy.py')
-rw-r--r--nikola/plugins/command/github_deploy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nikola/plugins/command/github_deploy.py b/nikola/plugins/command/github_deploy.py
index d4dd8c5..13da48c 100644
--- a/nikola/plugins/command/github_deploy.py
+++ b/nikola/plugins/command/github_deploy.py
@@ -135,9 +135,10 @@ class CommandGitHubDeploy(Command):
)
commands = [
+ ['git', 'pull', remote, '%s:%s' % (deploy, deploy)],
['git', 'add', '-A'],
['git', 'commit', '-m', commit_message],
- ['git', 'push', '-f', remote, '%s:%s' % (deploy, deploy)],
+ ['git', 'push', remote, '%s:%s' % (deploy, deploy)],
['git', 'checkout', source],
]