]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Problem_with_local_git_commit.mdwn
Merge remote-tracking branch 'spalax/calendar-autocreate'
[ikiwiki.git] / doc / forum / Problem_with_local_git_commit.mdwn
1 I have a problem when I edit my wiki with a text editor and use just git to commit. 
2
3 Suppose `iki` is my scrdir and `iki.git` my repository. Then I did `git clone iki.git myiki` to get a copy. Then I do 
4
5     cd myiki 
6     echo "test" >> somepage.mdwm"
7     git add somepage.mdwm
8     git pull 
9     git commit -m "test"
10     git push
11
12 Then I get the following error message
13
14     Counting objects: 5, done.        
15     Delta compression using up to 2 threads.
16     Compressing objects: 100% (2/2), done.
17     Writing objects: 100% (3/3), 287 bytes, done.
18     Total 3 (delta 1), reused 0 (delta 0)
19     Unpacking objects: 100% (3/3), done.
20     remote: From /home/myuser/iki
21     remote:    32bb6be..1f3a647  master     -> origin/master
22     remote: There are no candidates for merging among the refs that you just fetched.
23     remote: Generally this means that you provided a wildcard refspec which had no
24     remote: matches on the remote end.
25     remote: 'git pull --prune origin' failed:  at /usr/share/perl5/IkiWiki/Plugin/git.pm line 207.
26     remote: skipping bad filename local.css~
27     remote: skipping bad filename #tex_sandbox.mdwn#
28     To /home/myuser/iki.git
29        32bb6be..1f3a647  master -> master
30
31 When I check the repository via gitk I see that everything seems to be ok, if I check the scrdir the same way origin master is one step away from master and the change doesn't appear on the iki web page. Then I tried to do a `sudo git pull --prune origin master` in my scrdir which sets master to the head, but the change isn't there anyway. It foremost appears when I do a second change as above or if I do `sudo ikiwiki --setup iki.setup`.
32
33 By the way the setup gives me a similar error message:
34
35     successfully generated /var/www/iki/ikiwiki.cgi  
36     successfully generated /home/myuser/iki.git/hooks/post-update
37     There are no candidates for merging among the refs that you just fetched.
38     Generally this means that you provided a wildcard refspec which had no
39     matches on the remote end.
40     'git pull --prune origin' failed:  at /usr/share/perl5/IkiWiki/Plugin/git.pm line 207.
41
42 Any ideas what may be wrong here and how to fix this?