web commit by http://mjgoins.myopenid.com/
[ikiwiki.git] / doc / setup / discussion.mdwn
1 I just went through the standard procedure described for setup, copied the blog directory from examples into my source directory, ran ikiwiki, and everything seems to have worked, except that none of the 
2 [[!meta ... ]] tags get converted. They simply show up in the html files unformatted, with no exclamation point, and with p tags around them. Any ideas? --mjg
3
4
5 Can the instructions for using `ikiwiki-makerepo` be clarified. This
6 command wants to create folders in the directory it is run in. Which
7 directory should that be - `$SRCDIR?` --Andy
8
9 > No, `ikiwiki-makerepo` does not create directories in the current
10 > directory. You specify the directory you want it to create and it creates
11 > the directory and makes it into a repository. The setup instuctions have
12 > examples of doing this. I don't see anything unclear. --[[Joey]]
13
14 Sorry, was not precise enough. It does if you are using the git option. I
15 believe this is partially explained on the rcs/git/ page. However I'm still
16 not totally clear where I should run the command when using git. If I
17 should be in $SRCDIR then updating the instructions to something like
18
19     REPOSITORY=~/wiki.git
20     cd $SRCDIR
21     ikiwiki-makerepo git $SCDIR $REPOSITORY
22
23 might clear things up a little. Apologies if I'm being a bit dim, learning
24 ikiwiki and git at same time :) 
25
26 Have tried 3 options
27
28 1. mkdir $REP cd $REP run command (says $REP already exists so won't run)
29 2. rm -rf $REP cd $SRC run command (creates a repository in $SRC, does not create $REP ends with "remote origin already exists"
30 3. mkdir $TMP cd $TMP run command (creates a repository in $SRC/.git creates a repository in $TMP, does nothing to $REP, ends with "remote origin already exists".
31
32 Version of ikiwiki installed is package from Ubuntu/Hardy 2.19
33 Git version is 1.5.2.5
34
35 n.b. svn version of command worked fine :)
36
37 --Andy
38
39 >       Initialized empty shared Git repository in /home/deploy/tmp/
40 >       Initialized empty Git repository in .git/
41 >       fatal: '/home/deploy/tmp/repo': unable to chdir or not a git archive
42
43 Looks like your git does not support GIT_DIR being used with git-init. I
44 see some mentions of changes in git's changelog for 1.5.3 that look
45 relevant. I've changed ikiwiki-makerepo to use a method more portable to
46 older versions of git. --[[Joey]]
47
48 Many thanks Joey, upgraded my git, and now have working iki :) -- Andy
49
50 ----
51
52 It isn't intended that .ikiwiki be versioned, is it? Do you have a svn:ignore set? 
53 Is there some magic way you can make the svn commands (and presumably commands for 
54 the other VCSs here) ignore the .ikiwiki directory during step 8, when they import it?
55 If not, maybe a note should be made that the user should delete this file before 
56 they import. --Ethan
57
58 > No, .ikiwiki should not be versioned, and a svn:ignore of it is reasonable,
59 > although probably too much noise for the setup instructions.
60 > I've switched to a different method that preserves .ikiwiki, w/o checking
61 > it in. --[[Joey]]
62
63 ----
64
65 These instructions should probably show how to use a bare Git repository
66 (`GIT_DIR=somewhere.git git-init-db`) rather than a repository with a full
67 working copy. You can always clone the repository if you want your own local
68 working copy. Furthermore, this allows you to make multiple commits to your
69 working copy before pushing them to the repository and causing the wiki to
70 update. --[[JoshTriplett]]
71
72 > I'm currently testing and running such a setup. --[[tschwinge]]
73
74 Furthermore the git instructions should be changed to move the *.ikiwiki*
75 directory back into the wiki's working copy directory, isn't it? --[[tschwinge]]
76
77 > Yes, I think so.  I will clean these instructions up unless somebody tells me we're missing something fundamental. --[[BartMassey]]
78
79 >> Either you do it or I'll do it somewhen soon.  --[[tschwinge]]
80
81 ----
82
83 Curious as to why support for CVS is not built in. --[[Luther]]
84
85 > See [[todo/CVS_backend|todo/CVS_backend]], but you might consider switching to a better version control system. --[[JoshTriplett]]
86
87 ----
88
89 What is the syntax for specifying the adminuser as an openid user?  I've tried a couple things but I'm missing something.   Thanks for any pointers.  -- [[AdamShand]]
90
91 > Just put the openid url in there. It has to be the full url with
92 > "http://". --[[Joey]]
93
94 ----
95
96 I apologize if this is the incorrect forum for this question, but I am trying to get ikiwiki set up and running with git.  I followed all the directions and all seems to work until I go back and try to make changes.  The steps I am performing:
97
98     cd $SRCDIR  (e.g. ~/ikisrc)
99     vim index.mdwn (add a couple lines)
100     git commit -a -m 'test'
101     git push
102
103 I then get a long error message which reads in part "You asked me to pull without telling me which branch you
104 want to merge with, and 'branch.master.merge' in your configuration file does not tell me either." From that point on, I get:
105
106     sws@odin:~/dev/ikisrc$ git push
107     To /home/git/repos/myikiwiki.git
108      ! [rejected]        master -> master (non-fast forward)
109     error: failed to push to '/home/git/repos/myikiwiki.git'
110
111 If I do a git clone ssh://odin/path/to/$REPOSITORY from another machine and try to edit I get the same error sequence.  What am I doing wrong?