File: Add_annex_files_outside_git_root_directory.mdwn

package info (click to toggle)
git-annex 10.20230126-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 69,344 kB
  • sloc: haskell: 74,654; javascript: 9,103; sh: 1,304; makefile: 203; perl: 136; ansic: 44
file content (24 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Hi,

I love the idea of git-annex, and I'm trying to do my first steps with it. I'm stuck on the following issue:

When creating a git repository and annexing a file in the root directory, everything works as expected:

    git init
    git annex init "mytest"
    echo 1 > annexfile
    git annex add annexfile
    # add annexfile ok
    # (Recording state in git...)

However, when I try to add a file in a subdirectory of the repository, the adding command fails without any error message:

    mkdir mydir
    echo 1 > mydir/myfile
    git annex add mydir/myfile
    # no message, no status change, nothing
    # note that I can add the file in the root dir and then move it to `mydir`

Am I doing something wrong here?

Thank you!