Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
We want to support both technologies - svn and git - in such a way that we can call several functions on remote servers from DRD:
status information
updates from the repository
commits to the repository
Modules should be able to implement hooks that define directories or sets of directories that can be selected in DRD to perform the svn/git actions on.
The unresolved issue so far is that usually we can't call external commands from PHP because the user running the PHP session has no sufficient permissions to run those external commands. A possible solution might be to store shell scripts in a specific directory for each required command and get a crontab to execute all scripts in that directory on a regular basis.
1) This issue has now been finally implemented and is working. It is only functional if the PHP installation of the core where DRD is installed is supporting ssh2lib. I will have to write some documentation to explain on how things are working there.
2) Issues for the drd_server modules should probably be raised in the issue queue for the drd module as well. I will look around if I can hide the issue queue for this project and put some comments into the module description.
Comments
Comment #1
jurgenhaasgreat idea
however, I do not have any experience with git at all and wonder if you (or someone else) would be able to help me out with code snippets.
Comment #2
rbayliss commentedSubscribe
Comment #3
jurgenhaasWe want to support both technologies - svn and git - in such a way that we can call several functions on remote servers from DRD:
Modules should be able to implement hooks that define directories or sets of directories that can be selected in DRD to perform the svn/git actions on.
The unresolved issue so far is that usually we can't call external commands from PHP because the user running the PHP session has no sufficient permissions to run those external commands. A possible solution might be to store shell scripts in a specific directory for each required command and get a crontab to execute all scripts in that directory on a regular basis.
Comment #4
j.slemmer commentedshould this issue stay open, as we are discussing everything on the DRD module?
Comment #5
jurgenhaasTwo things:
1) This issue has now been finally implemented and is working. It is only functional if the PHP installation of the core where DRD is installed is supporting ssh2lib. I will have to write some documentation to explain on how things are working there.
2) Issues for the drd_server modules should probably be raised in the issue queue for the drd module as well. I will look around if I can hide the issue queue for this project and put some comments into the module description.