summaryrefslogtreecommitdiff
path: root/doc/bugs/git-annex_has_issues_with_git_when_staging__47__commiting_logs.mdwn
blob: f1290a8186fce8458d1042b6c2aea7da1dae0699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
After a series of pretty convoluted copying files around between annex'd repos and pulling changes around between repos. I noticed that occassionally when git-annex tries to stage files (the `.git-annex/*/*/*logs`) git some times gets wedged and doing a "git commit -a" doesn't seem to work or files might not get added thus leaving a bunch of untracked files or modified files that aren't staged for a commit.

I tried running a *`git rm --cached -f -r *`* then *git add -u .git-annex/* or the usual *git add* then a commit fixes things for me. If I don't do that then my subsequent merges/pulls will fail and result in *no known copies of files* I suspect git-annex might have just touched some file modes and git picked up the changes but got confused since there was no content change. It might also just be a git on OSX thing and it doesn't affect linux/bsd users.

For now it's just a bit of extra work for me when it does occur but it does not seem to occur often.

> What do you mean when you say that git "got wedged"? It hung somehow?
>
> If git-annex runs concurrently with another git command that locks
> the repository its git add of log files can fail.
> --[[Joey]] 

>> It "got wedged" as in git doesn't let me commit anything, even though it tells me that there is stuff to be committed in the staging area.

>>> I've never seen git refuse to commit staged files. There would have to
>>> be some error message? --[[Joey]]