2013-10-01 36 views
0

我有蟒蛇织物运行很好,但是我有一个问题。在做$ fab deploy我总是得到合并弹出Python布料Git拉合并信息

Please enter a commit message to explain why this merge is necessary, 
especially if it merges an updated upstream into a topic branch. 

我不明白为什么它总是这样。如果我在SSH中执行完全相同的命令来拉取我的git repo,它在没有合并问题的情况下工作。

我会说我在Windows 8上,并拉到Linux,如果这件事。线的结局不应该是一个问题,它从来没有。

这是fabfile.py

from fabric.api import * 
from fabric.colors import * 

env.user = 'username' 
env.host_string = '99.99.0.99' 

def deploy(branch = 'master'): 
    path = '/var/www/mysite/htdocs' 
    with cd(path): 
     run("git pull origin {0}".format(branch)) 

def commit(branch = 'master'): 
    local('git add -u') 
    local('git add .') 
    message = prompt("commit msg: ") 
    local('git commit -m "{0}"'.format(message)) 
    local('git push origin {0}'.format(branch)) 
+0

是你的快速前进吗?这听起来像你在部署的树中进行了一次强制提交。 – tacaswell

+0

我认为你是对的,可能git哈希不会同步! – JREAM

回答

1

它要求你做的合并,因为拉不快进合并。

检查您的分支机构是否没有分支,并且您没有在部署方面进行rou comm提交。

+0

你能解释一下你说的吗?以及如何解决它? –