web commit by http://madduck.myopenid.com/: no need to save SRCDIR.
[ikiwiki.git] / doc / setup / discussion.mdwn
1 It isn't intended that .ikiwiki be versioned, is it? Do you have a svn:ignore set? 
2 Is there some magic way you can make the svn commands (and presumably commands for 
3 the other VCSs here) ignore the .ikiwiki directory during step 8, when they import it?
4 If not, maybe a note should be made that the user should delete this file before 
5 they import. --Ethan
6
7 > No, .ikiwiki should not be versioned, and a svn:ignore of it is reasonable,
8 > although probably too much noise for the setup instructions.
9 > I've switched to a different method that preserves .ikiwiki, w/o checking
10 > it in. --[[Joey]]
11
12 ----
13
14 These instructions should probably show how to use a bare Git repository
15 (`GIT_DIR=somewhere.git git-init-db`) rather than a repository with a full
16 working copy. You can always clone the repository if you want your own local
17 working copy. Furthermore, this allows you to make multiple commits to your
18 working copy before pushing them to the repository and causing the wiki to
19 update. --[[JoshTriplett]]
20
21 > I'm currently testing and running such a setup. --[[tschwinge]]
22
23 Furthermore the git instructions should be changed to move the *.ikiwiki*
24 directory back into the wiki's working copy directory, isn't it? --[[tschwinge]]
25
26 > Yes, I think so.  I will clean these instructions up unless somebody tells me we're missing something fundamental. --[[BartMassey]]
27
28 >> Either you do it or I'll do it somewhen soon.  --[[tschwinge]]
29
30 ----
31
32 Curious as to why support for CVS is not built in. --[[Luther]]
33
34 > See [[todo/CVS_backend|todo/CVS_backend]], but you might consider switching to a better version control system. --[[JoshTriplett]]
35
36 ----
37
38 On the git setup instuctions, I wonder if this wouldn't work as well and be
39 simpler? --[[Joey]]
40
41         REPOSITORY=~/wiki.git
42         mkdir $REPOSITORY
43         cd $REPOSITORY
44         git --bare init --shared
45         mv $SRCDIR $SRCDIR.old
46         git clone $REPOSITORY $SRCDIR
47         cd $SRCDIR
48         echo /.ikiwiki > .gitignore
49         mv $SRCDIR.old/* $SRCDIR.old/.* .
50         rmdir $SRCDIR.old
51         git add .
52         git commit -m "initial commit"
53         git push $REPOSITORY master
54
55 [[madduck]]: I'd say this instead:
56
57         mkdir $REPOSITORY
58         cd $REPOSITORY
59         git --bare init --shared
60         cd $SRCDIR
61         git init
62         echo /.ikiwiki > .gitignore
63         git add .
64         git commit -m "initial commit"
65         git remote add origin $REPOSITORY
66         git config branch.master.merge refs/heads/master
67         git push --all