]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/git_commit_adds_files_that_were_not_tracked.mdwn
response
[ikiwiki.git] / doc / bugs / git_commit_adds_files_that_were_not_tracked.mdwn
1 Commit 3650d0265bc501219bc6d5cd4fa91a6b6ecd793a seems to have been caused by
2 a bug in ikiwiki. recentchanges/* was added to the git repo incorrectly.
3
4 Part of the problem seems to be that git's `rcs_commit` does a git add followed
5 by a `rcs_commit_staged`, and so calling `rcs_commit` on files that were
6 not checked in before adds them, incorrectly.
7
8 I'm unsure yet why the recentchanges files were being committed. Possibly
9 because of the link fixup code run when renaming a page. --[[Joey]] 
10
11 > See also [[bugs/rename fixup not attributed to author]]. --[[smcv]]
12
13 > Ok, there was a call to `rcs_commit` that was still using non-named
14 > parameters, which confused it thuroughly, and I think caused
15 > 'git add .' to be called. I've fixed that.
16
17 > I think there is still potential for the problem I described above to
18 > occur during a rename or possibly otherwise. Ok.. fixed `rcs_commit`
19 > to not add too. [[done]] --[[Joey]]