linux下svn提交報錯

2021-09-02 03:24:58 字數 621 閱讀 5872

error:

svn: commit failed (details follow):svn: could not use external editor to fetch log message; consider setting the $svn_editor environment variable or using the --message (-m) or --file (-f) optionssvn: none of the environment variables svn_editor, visual or editor are set, and no 'editor-cmd' run-time configuration option was found

問題如下:

svn: 無法使用外部編輯器獲得日誌資訊;考慮設定環境變數 $svn_editor,或者使用 --message (-m) 或 --file (-f) 選項

svn: 沒有設定 svn_editor,visual 或 editor 環境變數,執行時的配置引數中也沒有 「editor-cmd」 選項

解決辦法:

export svn_editor=vim

linux系統下svn提交必填Message

1.進入到svn專案的hooks目錄 我的svn目錄是 usr local svn example cd usr local svn example hooks 2.copy pre commit.tmpl 檔案為pre commit 3.修改pre commit檔案 先注釋掉 svnlook lo...

Linux 下定時提交SVN

使用 crontab sudo crontab e 開啟後加入這行 plain view plain copy 0 my user name my script path 表示每個整點以my user name身份執行my script path。這裡最好是使用當前的使用者名稱,修改掉預設的root...

Linux下SVN提交時強制寫日誌問題

網上找到的都是這個做法,但是我按著這個步驟改了之後根本不管用,不寫注釋還是照樣能提交 進入倉庫project hooks目錄,找到pre commit.tmpl檔案,重新命名為pre commit。編輯pre commit檔案 將 svnlook log t txn repos grep a za ...