aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/no_git-annex_shell_on_Windows/comment_7_a8654cf656de55ccdcf40270a1ef4ca9._comment
blob: 1733b29dd67f30a0d7a5de73db11c95046195f45 (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
[[!comment format=mdwn
 username="https://www.google.com/accounts/o8/id?id=AItOawln3ckqKx0x_xDZMYwa9Q1bn4I06oWjkog"
 nickname="Michael"
 subject="comment 7"
 date="2014-05-24T22:07:15Z"
 content="""
OK thought I'd use it with annex-ignore set, but:

    git annex copy --to=kpf file.jpg
    copy file.jpg (checking kpf...) git-annex-shell: git: createProcess: invalid argument (Invalid argument)
(to kpf...) 
    git-annex-shell: git: createProcess: invalid argument (Invalid argument)
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0]

    rsync failed -- run git annex again to resume file transfer
    failed
git-annex: copy: 1 failed


For reference, here's the .git/config section.

I can either set receivepack/uploadpack like below or add /cygdrive/c/Program Files (x86)/Git/libexec/git-core to PATH in cygwin shell.

Also, if I set url to kp:/cygdrive/f/backup/f, git complains that it's not a git repository (msysgit doesn't understand cygwin stuff?)

    [remote \"kpf\"]
            url = kp:f:/backup/ph
            fetch = +refs/heads/*:refs/remotes/kpf/*
            receivepack = git receive-pack
            uploadpack = git upload-pack
            annex-uuid = 99c498fc-e38e-11e3-8bb0-5368a291bd90
            annex-ignore = true

"""]]