aboutsummaryrefslogtreecommitdiff
path: root/doc/rcs
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-09-12 18:39:28 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-09-12 18:39:28 +0000
commit8a2296fa8564ab31a18403c871b2de4c8dedc9d3 (patch)
tree8cc605dd767bbb53b918828e7be69bb7504ab1a6 /doc/rcs
parenta89f6cb1a0dc6d2f748866f8970dff1a6f55980e (diff)
downloadikiwiki-8a2296fa8564ab31a18403c871b2de4c8dedc9d3.tar
ikiwiki-8a2296fa8564ab31a18403c871b2de4c8dedc9d3.tar.gz
web commit by UlrikSverdrup: How to migrate from svn to git in my _simple_ case
Diffstat (limited to 'doc/rcs')
-rw-r--r--doc/rcs/git/discussion.mdwn25
1 files changed, 24 insertions, 1 deletions
diff --git a/doc/rcs/git/discussion.mdwn b/doc/rcs/git/discussion.mdwn
index 72954b564..3f8fcf992 100644
--- a/doc/rcs/git/discussion.mdwn
+++ b/doc/rcs/git/discussion.mdwn
@@ -2,4 +2,27 @@
I'd like to migrate from svn to git, because git is better in general but also has some nice properties that go well together with my use of ikiwiki.. I only change it myself. I want a single git repo so that my website directory is self-contained so that I don't need to drag around a separate svn repository on my computer. Is it possible to use ikiwiki so that it only uses a git repository in the same dir as all files are stored and edited?
-Otherwise, I hope migrating is just importing the svn repo to git and then setting up ikiwiki to use git. I don't plan to go back to svn after that so git-svn should only do the import. \ No newline at end of file
+Otherwise, I hope migrating is just importing the svn repo to git and then setting up ikiwiki to use git. I don't plan to go back to svn after that so git-svn should only do the import.
+
+### Solution ###
+**Basis:** I only use ikiwiki as a wiki compiler. No cgi or anything.
+
+I imported my svn repo into git with git-svnimport. I reconfigured ikiwiki to _not use any rcs_. In `ikiwiki.setup`, I have the git repository as srcdir, and a suitable dstdir.
+
+Then, in my git repository, I added this `post-commit` hook to refresh the wiki:
+
+ #!/bin/sh
+
+ # to refresh when changes happen
+
+ #!/bin/sh
+
+ # to refresh when changes happen
+
+ BASE="/path/to/base/dir"
+ SETUPFILE="$BASE/ikiwiki.setup"
+ UNDERLAYDIR="$BASE/underlay"
+
+ ikiwiki --refresh --setup "$SETUPFILE" --underlaydir="$UNDERLAYDIR" --verbose
+
+UlrikSverdrup \ No newline at end of file