summaryrefslogtreecommitdiff
path: root/doc/bugs/regression__58___behavior_when_files_to_add_do_not_exist.mdwn
blob: 9421dc66d68421d293986ad0c1f694f7e293da6c (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
### Please describe the problem.

When adding a list of files, where some exist and some don't, annex claims to add some of the files until it encounters the first missing file. Then it bails out, leaving files hashed but not added.

### What steps will reproduce the problem?

Create a file, ask annex to add the file and a non-existant file

Expected and historic behavior: annex adds the file

Actual behavior: annex hashes but does not add the file

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

git-annex version: 5.20150420-gb0ebb23
standalone linux amd64

### Please provide any additional information below.

[[!format sh """
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log

$ git annex version
git-annex version: 5.20150420-gb0ebb23
[ . . . ]

$ git init asdf
Initialized empty Git repository in /tmp/asdf/.git/

$ cd asdf

$ git annex init
init  ok
(recording state in git...)

$ touch asdf

$ git add asdf qwer
fatal: pathspec 'qwer' did not match any files

$ git annex add asdf qwer
add asdf ok
git-annex: qwer not found

$ file * | sed -e 's/`.*//'
asdf: symbolic link to 

$ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	asdf

nothing added to commit but untracked files present (use "git add" to track)


# End of transcript or log.
"""]]

Older version of git-annex:

[[!format sh """

$ git annex version
git-annex version: 5.20140412ubuntu1
[ . . . ]

$ git init asdf
Initialized empty Git repository in /tmp/asdf/.git/

$ cd asdf

$ git annex init asdf
init asdf ok
(Recording state in git...)

$ touch asdf

$ git annex add asdf qwer
add asdf ok
git-annex: qwer not found
(Recording state in git...)

$ file * | sed -e 's/`.*//'
asdf: symbolic link to 

$ git status
On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

	new file:   asdf
"""]]

> [[fixed|done]] --[[Joey]]