0
我在Windows上運行一個shell腳本,將我的git索引導出到temp svn trunk目錄。git checkout-index --prefix將內容壓入前綴命名空間
在另一個項目中,此腳本可以正常工作,但在此項目中,--prefix會刷入正在卸載的文件中。
這裏是我的bash的變量:
PLUGINSLUG="bbpress-live-topic-suggestions"
CURRENTDIR=`pwd`
MAINFILE="bbpress-live-topic-suggestions.php" # this should be the name of your main php file in the wordpress plugin
GITPATH="$CURRENTDIR" # this file should be in the base of your git repository
TEMPPATH="$GITPATH/tmp" # this should be the name of your main php file in the wordpress plugin
SVNPATH="$TEMPPATH/$PLUGINSLUG" # path to a temp SVN repo. No trailing slash required and don't add trunk.
SVNTRUNK="$TEMPPATH/$PLUGINSLUG/trunk/"
這裏是我使用從我基地的git目錄中的文件複製到SVN git checkout-index -a -f --prefix=$SVNTRUNK
這裏的代碼是什麼出口長相像:
你可以看到它忽略了目錄結構我的前綴。我已經嘗試在運行命令之前創建/ trunk /文件夾,但它沒有任何區別。我甚至嘗試用我的變量替換正斜槓來反斜槓。前綴的最後一個/ trunk /部分仍然沒有兌現。
一旦猜測我有可能文件路徑太長,這是打破它?