summaryrefslogtreecommitdiff
path: root/doc/bugs/cross_platform_permissions_woes/comment_2_0a34e11b466fad287325425e76487fa1._comment
blob: 8ee7c18a5db254906ed08f3b63f4800190323226 (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
[[!comment format=mdwn
 username="https://www.google.com/accounts/o8/id?id=AItOawmCzVCPjgg_Un_114P8iiSwExms0G2csCA"
 nickname="Michele"
 subject="details about my problem"
 date="2013-10-15T23:30:26Z"
 content="""
Thank for your answer, but unfortunately the remote is already an ssh (although i agree it should happen most certainly also via samba/cifs mount). 
it happens as long as the remote is NOT defined as root login. 
I suppose it could as well be something with my setup (although i've tried different windows/linux hosts) and I have no idea how to debug it.

this is a transcript of recreating the problem (i've just edited user/hostname):
	 
	 Microsoft Windows [Version 6.1.7601]
     C:\>git init wintest
     Initialized empty Git repository in C:/wintest/.git/
     C:\>cd wintest
     C:\wintest>git annex init wintest
     init wintest
       Detected a crippled filesystem.
       Enabling direct mode.
       Detected a filesystem without fifo support.
       Disabling ssh connection caching.
     ok
     (Recording state in git...)
     C:\wintest>echo \"thisisatest\">wintest
     C:\wintest>git annex add wintest
     add wintest (checksum...) ok
     (Recording state in git...)
     C:\wintest>git remote add remote ssh://me@linuxbox/home/me/testlinux
     C:\wintest>ssh me@linuxbox
     [me@home ~]$ git init --bare testlinux
     Initialized empty Git repository in /home/me/testlinux/
     [me@home ~]$ cd testlinux/
     [me@home testlinux]$ git annex init linux
     init linux ok
     (Recording state in git...)
     [me@home testlinux]$ exit
     C:\wintest>git annex sync
     commit
     ok
     pull remote
     warning: no common commits
     remote: Counting objects: 5, done.
     remote: Compressing objects: 100% (3/3), done.
     remote: Total 5 (delta 1), reused 0 (delta 0)
     Unpacking objects: 100% (5/5), done.
     From ssh://linux/home/me/testlinux
      * [new branch]      git-annex  -> remote/git-annex
     ok
     (merging remote/git-annex into git-annex...)
     (Recording state in git...)
     push remote
     Counting objects: 18, done.
     Delta compression using up to 2 threads.
     Compressing objects: 100% (12/12), done.
     Writing objects: 100% (16/16), 1.45 KiB, done.
     Total 16 (delta 2), reused 0 (delta 0)
     To ssh://me@linux/home/michele/testlinux
      * [new branch]      git-annex -> synced/git-annex
      * [new branch]      master -> synced/master
     ok
     C:\wintest>git annex copy --to remote wintest
     copy wintest (checking remote...) (to remote...)
     wintest
               15 100%    0.00kB/s    0:00:00 (xfer#1, to-check=0/1)
     
     rsync error: syntax or usage error (code 1) at /home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/main.c(1052) [sender=
     total size is 15  speedup is 0.13
     failed
     git-annex: copy: 1 failed
     
     C:\wintest>
"""]]