summaryrefslogtreecommitdiff
path: root/doc/bugs/get_fails_for_file:__47____47___web_remotes_if_the_file_is_empty.mdwn
blob: bb943fa868b8475eacf5e57c962de79226ed9a43 (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
###What steps will reproduce the problem?
    $ touch /home/arand/empty
    $ git annex addurl 'file:///home/arand/empty'                                                                             
    addurl _home_arand_empty (downloading file:///home/arand/empty ...) 
    
    git-annex: /home/arand/tmp/c/.git/annex/tmp/URL--file&c%%%home%arand%empty: getFileStatus: does not exist (No such file or directory)
    failed
    git-annex: addurl: 1 failed

###What is the expected output? What do you see instead?
If it is possible to distinguish between empty files and files that just fail to open, it would be nice if Annex were able to handle it, or at least give a more obvious error message.

###What version of git-annex are you using? On what operating system?

Debian sid/experimental

    git-annex version: 4.20130227
    local repository version: 4
    default repository version: 3
    supported repository versions: 3 4
    upgrade supported from repository versions: 0 1 2

> Seems that curl doesn't write the file it was asked to 
> output to in this case. Crazy. Does not affect empty 
> http urls. Switched to using just cp for file://
> [[done]] --[[Joey]]