Commits

Vladimir Mihailenco  committed 2dad0c3

Add force argument to git push

  • Participants
  • Parent commits e722384

Comments (0)

Files changed (1)

File fab_deploy/vcs/git.py

 
 def push():
     user, host = env.hosts[0].split('@')
-    local('git push ssh://%s/~%s/src/%s/ %s' % (env.hosts[0], user, env.conf.INSTANCE_NAME,
+    local('git push -f ssh://%s/~%s/src/%s/ %s' % (env.hosts[0], user, env.conf.INSTANCE_NAME,
                                              env.conf.GIT_BRANCH))
 
 def configure():