熱門文章

2016年6月17日 星期五

[Openshift] git clone

$ git clone <git_url> <directory to create>


So I tried to run it as suggested:
submodule add -f http://git.drupal.org/project/token.git /sites/all/modules/token
But this throws this error:
fatal: could not create leading directories of '/sites/all/modules/token': Permission denied
Clone of 'http://git.drupal.org/project/token.git' into submodule path '/sites/all/modules/token' failed
Permissions are 777.
Ideas?
Just found the answer: 
git submodule add http://git.drupal.org/project/token.git sites/all/modules/token
The leading "/" was the problem.

提問者多打了一個"/"導致錯誤的發生

沒有留言:

張貼留言