我正在使用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