This commit is contained in:
parent
e4e919dc4e
commit
6aa14d8d1f
1 changed files with 140 additions and 0 deletions
140
doc/bugs/fails_to_get_content_from_bare_repo_on_windows.mdwn
Normal file
140
doc/bugs/fails_to_get_content_from_bare_repo_on_windows.mdwn
Normal file
|
@ -0,0 +1,140 @@
|
|||
### 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
|
||||
|
Loading…
Reference in a new issue