我正在使用Fabric运行ANT任务&然后上传到GitHub。该脚本已经工作,但不一致,因此很难理解为什么。无法从GitHub的Fabric脚本提交
我一直在这里看到织物的过程是;
git add
git commit
git push
但我一直看到这个输出;
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
Fatal error: local() encountered an error (return code 1) while executing 'git commit -m "Latest Selenium screenshots for View Employee"'
Aborting.
我写的函数看起来像这样;
def deploy():
process = test()
os.chdir('\\Documents and Settings\markw\GitTest')
with cd('\\Documents and Settings\markw\GitTest'):
local('git reset --soft HEAD')
local('git pull origin master')
local('git add -A')
local('git commit -m "Latest Selenium screenshots for %s"' % (process))
local('git push -u origin master')
什么我错过我的承诺,在这里导致问题?是否有另一个标志结合已经排队的提交?
您的路径看起来很奇怪:更好的r'\ docs'或'\\ docs' – guettli 2012-04-23 12:41:48