]> sipb.mit.edu Git - ikiwiki.git/blob - doc/users/joshtriplett/discussion.mdwn
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[ikiwiki.git] / doc / users / joshtriplett / discussion.mdwn
1 Can we please have a very brief HOWTO?
2
3 I have a Moin wiki in /var/www/wiki and want to create an IkIwiki clone of it in /var/www/ikiwiki backed by a git repos in /data/ikiwiki.
4
5 I tried:
6
7     mkdir /var/www/ikiwiki
8     mkdir /data/ikiwiki
9     PATH=.:/usr/lib/git-core:$PATH ./moin2iki /data/ikiwiki http://localhost/wiki
10
11 Help please!but this failed. (BTW, I don't usually put . in my PATH).  The failure appears to be that the converter doesn't actually create an ikiwiki instance, but appears to want to update one:
12
13     fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
14     Use '--' to separate paths from revisions
15     fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
16     Use '--' to separate paths from revisions
17     fatal: Not a valid object name master
18     Traceback (most recent call last):
19       File "/home/peterc/src/moin2iki/git-map", line 125, in <module>
20         if __name__ == "__main__": sys.exit(main(sys.argv[1:]))
21       File "/home/peterc/src/moin2iki/git-map", line 117, in main
22         print git_map_file('commit', new_head)
23       File "/home/peterc/src/moin2iki/git-map", line 33, in git_map_file
24         f(inproc.stdout, outproc.stdin, sha, arg)
25       File "/home/peterc/src/moin2iki/git-map", line 64, in handle_commit
26         string, tree = lines.pop(0).split()
27     IndexError: pop from empty list
28
29 OK, so I created one:
30
31     ikiwiki --setup /etc/ikiwiki/auto.setup
32     .....
33 This process created several files and directories in my home directory:
34
35     wiki.git/
36     public_html/wiki/
37     wiki.setup
38     .ikiwiki/
39
40 Following the instructions on the setup page, I did:
41     mv wiki.git /data/ikiwiki
42     ( cd /data/ikiwiki; git clone -l wiki.git wiki; )
43     mv .ikiwiki /data/ikiwiki/ikiwiki
44     mv ~/public_html/wiki /var/ikiwiki/
45
46 then did again
47
48     PATH=.:/usr/lib/git-core:$PATH ./moin2iki /data/ikiwiki/wiki http://www/wiki
49
50 and saw no output, and no change to the filesystem.
51
52 I'm totally confused.  It looks as though the script calls moin2git iff the target directory isn't there, but the script fails in interesting ways if it is.
53
54 The other thing I saw was:
55
56     2009-12-04 09:00:31,542 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module!
57     Traceback (most recent call last):
58       File "./moin2git", line 128, in <module>
59         if __name__ == '__main__': main(*sys.argv[1:])
60       File "./moin2git", line 43, in main
61         r = request.RequestCLI()
62     AttributeError: 'module' object has no attribute 'RequestCLI'
63
64 Moin version is 1.8.5
65
66 Help please!