Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, there is no one good way to do this. However, here is a suggestion.</p> <p>What you can do is create a bare repository on your server, outside the public directory. This repository will push changes to your SVN repository and will be like the gate keeper for your SVN repo. Your website already runs an SVN repository.</p> <pre><code>$ cd; mkdir site_bare.git; cd site_bare.git $ git --bare init </code></pre> <p>You can use a shell script, something like <a href="https://github.com/deanc/wordpress-plugin-git-svn" rel="nofollow">https://github.com/deanc/wordpress-plugin-git-svn</a> on the post-commit hook on this bare repository. </p> <pre><code>#!/bin/sh echo echo "**** Pulling changes into the SVN repository [Hub's post-update hook]" echo cd $HOME/www || exit unset GIT_DIR # Change to SVN dir and commit changes echo "Changing directory to SVN and committing to trunk" cd $SVNPATH/trunk svn commit --username=$SVNUSER -m "$COMMITMSG" # Create a new tag and commit it :) echo "Creating new SVN tag" cd $SVNPATH svn copy trunk/ tags/$NEWVERSION1 svn commit --username=$SVNUSER -m "Updating tag to $NEWVERSION1" # Update the version number echo "Updating version number for future executions" cd $CURRENTDIR echo $NEWVERSION1 &gt; version.txt exec git-update-server-info </code></pre> <p>I have taken this from <a href="https://github.com/deanc/wordpress-plugin-git-svn/blob/master/deploy.sh" rel="nofollow">https://github.com/deanc/wordpress-plugin-git-svn/blob/master/deploy.sh</a> but you can get the git commit message directly instead of asking for one.</p> <p>On your local machine, add the bare repository as a remote and push changes to it:</p> <pre><code>git remote add bare &lt;bare-repository-url&gt; </code></pre> <p>How this works is, you write some code and push it to the bare repository, which using its post-update hook to push changes to the SVN repo.</p> <p>You will have to modify the code above to push changes. I have just given a reference.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload