summaryrefslogtreecommitdiff
path: root/doc/bugs/Windows:_repo_located_on_different_drive_letter_unavailable.mdwn
blob: 070191a636c7e38cb4f61d0251ca5ce8f56f0046 (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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
Suppose I want to have following repositories syncronized on my windows pc:

    D:\Annex (NTFS hard drive)
    R:\Annex (FAT32 usb flash drive)

What I'm experiencing is that I simply can't do this. Everything ok if both repositories located on the same drive, for example:

    D:\Annex1
    D:\Annex2

I'm new to git annex, tell me if I'm doing something completely wrong.

### System information:

* windows 8.1
* git 1.9.4.msysgit.0
* git-annex 5.20150327-g22c9bbd (official build)

### Short steps for reproduction:

* init repo A on drive C
* commit some file
* clone repo A to repo B on drive D
* add remote to repo B, pointing to repo A
* add remote to repo A, pointing to repo B
* execute sync on repo B

### Verbose step by step reproduction:

    C:\>mkdir Annex

    C:\>cd Annex

    C:\Annex>git init
    Initialized empty Git repository in C:/Annex/.git/

    C:\Annex>git-annex init c
    init c
      Detected a filesystem without fifo support.

      Disabling ssh connection caching.

      Detected a crippled filesystem.

      Enabling direct mode.
    ok
    (recording state in git...)

    C:\Annex>echo "Hello" > README.txt

    C:\Annex>git-annex add README.txt
    add README.txt ok
    (recording state in git...)

    C:\Annex>git-annex sync
    commit  ok

    C:\>D:

    D:\>mkdir Annex

    D:\>cd Annex

    D:\Annex>cd ..

    D:\>git clone C:\Annex
    Cloning into 'Annex'...
    done.

    D:\>cd Annex

    D:\Annex>git-annex init d
    init d
      Detected a filesystem without fifo support.

      Disabling ssh connection caching.

      Detected a crippled filesystem.
    (merging origin/git-annex into git-annex...)
    (recording state in git...)

      Enabling direct mode.
    ok
    (recording state in git...)

    D:\Annex>git remote add c C:\Annex

    D:\Annex>cd ..

    D:\>C:

    C:\>cd Annex

    C:\Annex>git remote add d D:\Annex

    C:\Annex>cd ..

    C:\>D:

    D:\>cd Annex

    D:\Annex>git-annex sync
    commit  ok

    D:\Annex>git-annex get README.txt
    get README.txt (not available)
      Try making some of these repositories available:
            98a6384c-ede4-4c97-b20d-9e1895e415cd -- c
    failed
    git-annex: get: 1 failed

### Notices

Latest sync command should inject annex-uuid to .config file, but it does not. For some reason repository on other drive is unavailable. If I do all of this on the same drive everything works ok. I've also checked case with one bare repository, result is the same.

### Resulting .config files

#### Repo on drive C

    [core]
        repositoryformatversion = 0
        filemode = false
        bare = true
        logallrefupdates = true
        symlinks = false
        ignorecase = true
        hideDotFiles = dotGitOnly
    [annex]
        uuid = 98a6384c-ede4-4c97-b20d-9e1895e415cd
        sshcaching = false
        crippledfilesystem = true
        version = 5
        direct = true
    [remote "d"]
        url = D:\\Annex
        fetch = +refs/heads/*:refs/remotes/d/*

#### Repo on drive D

    [core]
        repositoryformatversion = 0
        filemode = false
        bare = true
        logallrefupdates = true
        symlinks = false
        ignorecase = true
        hideDotFiles = dotGitOnly
    [remote "origin"]
        url = C:\\Annex
        fetch = +refs/heads/*:refs/remotes/origin/*
    [branch "annex/direct/master"]
        remote = origin
        merge = refs/heads/annex/direct/master
    [annex]
        uuid = 74b81547-ef4b-4bd6-bc6c-38578029ac96
        sshcaching = false
        crippledfilesystem = true
        version = 5
        direct = true
    [remote "c"]
        url = C:\\Annex
        fetch = +refs/heads/*:refs/remotes/c/*

> [[fixed|done]]; a simple path calculation bug. --[[Joey]]