aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/git_annex_sync_deleted_a_bunch_of_files___40__not_expected__41__/comment_8_7b89c224ab6f79d406785fe751c241b6._comment
blob: 943b9718ee5693b83a88f53ec28a96b44ac1ea5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[[!comment format=mdwn
 username="yminus"
 subject="comment 8"
 date="2015-12-13T22:55:15Z"
 content="""
I think the problem in my case is that I had special characters in some file names which fat does not support.

I tried to recover the git annex repo in direct mode using these steps:
<pre>
git push --force n900 master 
git checkout synced/master
git push --force n900 synced/master 
git checkout master
git annex unlock flac/Type_O_Negative/2003_Life_Is_Killing_Me/
mv flac/Type_O_Negative/2003_Life_Is_Killing_Me/03.Less_Than_Zero_\(\<0\).flac flac/Type_O_Negative/2003_Life_Is_Killing_Me/03.Less_Than_Zero.flac
git annex add flac/
git commit -m \"Work around broken file systems\"
git push --force n900 master 
git checkout synced/master
git push --force n900 synced/master 
git checkout master
git annex sync n900
</pre>

But now the last git annex sync creates a merge commit which only contains \"variants\" of the renamed files:

<pre>
    Merge remote-tracking branch 'refs/remotes/origin/synced/master' into annex/direct/master
    
    # Conflicts:
    #	flac/Type_O_Negative/2003_Life_Is_Killing_Me/03.Less_Than_Zero.flac
    #	mp3/Type_O_Negative/2003_Life_Is_Killing_Me/03.Less_Than_Zero.mp3

 flac/Type_O_Negative/2003_Life_Is_Killing_Me/03.Less_Than_Zero.variant-6467.flac 
index 0000000,c33ca87..c33ca87
mode 000000,120000..120000

 mp3/Type_O_Negative/2003_Life_Is_Killing_Me/03.Less_Than_Zero.variant-562b.mp3 
index 0000000,a247fc6..a247fc6
mode 000000,120000..120000
</pre>

So the repo on n900 still does not contain all the files added since the last sync (git annex get fails for those files). At least now the sync does not delete files in my laptop repo any more.

This is the current state:

<pre>
*   44dd9a8 (n900/annex/direct/master) Merge remote-tracking branch 'refs/remotes/origin/synced/master' into annex/direct/master
|\  
| *   21df034 (HEAD -> master, tag: before_syncing_n900, nas/synced/master, n900/synced/master, n900/master, synced/master) Merge remote-tracking branch 'refs/remotes/nas/master'
| |\  
| | * 4f61c44 (nas/master) Work around broken file systems
| | * 85ab30f ADDED FILES
| * | 92bc06e Work around broken file systmes (mp3)
| |/  
* |   a945a24 merge refs/heads/synced/master
|\ \  
| |/  
| * 1236008 (origin/synced/master, origin/master) ADDED FILES
| * 17c4f54 ADDED FILES
| *   364d525 Merge remote-tracking branch 'refs/remotes/origin/master'
| |\  
| | * c18f170 ADDED FILES
| | * 9dd5668 ADDED FILES
| * | c3280fc ADDED FILES
| * | 2babe80 ADDED FILES
| * | b964e29 ADDED FILES
| * | 03f3bd1 ADDED FILES
| * | 010a469 ADDED FILES
| * | 8acf199 ADDED FILES
| * |   f2477bc Merge remote-tracking branch 'refs/remotes/origin/master'
| |\ \  
| | |/  
| | * 121ffd1 ADDED FILES
* | | dc88b8a git-annex in lars@lars-laptop:/run/media/lars/Nokia N900/.sounds/Musik
</pre>
"""]]