summaryrefslogtreecommitdiff
path: root/doc/bugs/fails_to_get_content_from_bare_repo_on_windows.mdwn
blob: a3cd81aed2b8f24cbb659617f8ce10eea644e9bc (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
### Please describe the problem.

I have a annex repo in external drive (a bare repo), usually synced with a macbook. When I'm trying to sync the drive over to a Windows machine, all contents fail to sync over. I managed to reproduce the problem with a set of instructions locally:

    C:\Temp\test>dir                                               
     Volume in drive C is Windows                                  
     Volume Serial Number is 6839-6E71                             
                                                                   
     Directory of C:\Temp\test                                     
                                                                   
    2014/05/08  23:08    <DIR>          .                          
    2014/05/08  23:08    <DIR>          ..                         
    2014/05/08  23:08                14 file.txt                   
                   1 File(s)             14 bytes                  
                   2 Dir(s)  164,943,056,896 bytes free            
                                                                   
    C:\Temp\test>git init                                          
    Initialized empty Git repository in C:/Temp/test/.git/         
                                                                   
    C:\Temp\test>git annex init                                    
    init                                                           
      Detected a filesystem without fifo support.                  
                                                                   
      Disabling ssh connection caching.                            
                                                                   
      Detected a crippled filesystem.                              
                                                                   
      Enabling direct mode.                                        
    ok                                                             
    (Recording state in git...)                                    
                                                                   
    C:\Temp\test>git annex add .                                   
    add file.txt ok                                                
    (Recording state in git...)                                    
                                                                   
    C:\Temp\test>cd ..                                             
                                                                   
    C:\Temp>mkdir bare                                             
                                                                   
    C:\Temp>cd bare                                                
                                                                   
    C:\Temp\bare>git init --bare                                   
    Initialized empty Git repository in C:/Temp/bare/              
    C:\Temp\bare>git annex init
    init
      Detected a filesystem without fifo support.
    
      Disabling ssh connection caching.
    
      Detected a crippled filesystem.
    ok
    (Recording state in git...)
    
    C:\Temp\bare>cd ../test
    
    C:\Temp\test>git remote add mybare C:\Temp\bare
    
    C:\Temp\test>git annex sync --content mybare
    commit  ok
    pull mybare
    warning: no common commits
    remote: Counting objects: 5, done.
    remote: Compressing objects: 100% (3/3), done.
    remote: Total 5 (delta 0), reused 0 (delta 0)
    Unpacking objects: 100% (5/5), done.
    From C:\Temp\bare
     * [new branch]      git-annex  -> mybare/git-annex
    ok
    (merging mybare/git-annex into git-annex...)
    (Recording state in git...)
    copy file.txt copy file.txt (to mybare...)
    file.txt
              14 100%    0.00kB/s    0:00:00 (xfer#1, to-check=0/1)
    
    sent 86 bytes  received 31 bytes  234.00 bytes/sec
    total size is 14  speedup is 0.12
    ok
    pull mybare
    ok
    (Recording state in git...)
    push mybare
    Counting objects: 23, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (16/16), done.
    Writing objects: 100% (21/21), 1.94 KiB | 0 bytes/s, done.
    Total 21 (delta 1), reused 0 (delta 0)
    To C:\Temp\bare
     * [new branch]      git-annex -> synced/git-annex
     * [new branch]      annex/direct/master -> synced/master
    ok
    
    C:\Temp\test>cd ..
    
    C:\Temp>git clone C:\Temp\bare test2
    Cloning into 'test2'...
    done.
    
    C:\Temp>cd test2
    
    C:\Temp\test2>ls -l
    total 1
    ----------+ 1 Ruo None 188 May  8 23:10 file.txt
    
    C:\Temp\test2>git annex init
    init
      Detected a filesystem without fifo support.
    
      Disabling ssh connection caching.
    
      Detected a crippled filesystem.
    
      Enabling direct mode.
    ok
    (Recording state in git...)
    
    C:\Temp\test2>git annex get file.txt
    get file.txt (merging origin/git-annex origin/synced/git-annex into git-annex...)
    (Recording state in git...)
    
      Unable to access these remotes: origin
    
      Try making some of these repositories available:
            f2af6f52-18d5-4a54-ae5c-c4bef5fab00c -- origin (MY-PC:C:\Temp\bare)
            fc00306a-157c-439b-a5c3-37aabf9d61fb -- MY-PC:C:\Temp\test
    failed
    git-annex: get: 1 failed
    
    
    C:\Temp\test2>git version
    git version 1.9.2.msysgit.0
    
    C:\Temp\test2>git annex version
    git-annex version: 5.20140421-g78d6aa1
    build flags: Assistant Webapp Webapp-secure Pairing Testsuite S3 WebDAV DNS Feeds Quvi TDFA CryptoHash
    key/value backends: SHA256E SHA1E SHA512E SHA224E SHA384E SKEIN256E SKEIN512E SHA256 SHA1 SHA512 SHA224 SHA384 SKEIN256 SKEIN512 WORM URL
    remote types: git gcrypt S3 bup directory rsync web webdav tahoe glacier hook external
    local repository version: 5
    supported repository version: 5
    upgrade supported from repository versions: 2 3 4
                                                                  
[[!tag confirmed]]