git-annex/doc/bugs/--git-dir_and_--work-tree_options.mdwn

30 lines
791 B
Text
Raw Normal View History

2011-08-09 13:00:21 +00:00
git-annex does not take into account the --git-dir and --work-tree command line options (while they can be useful when scripting).
2011-08-09 13:02:32 +00:00
> mkdir /tmp/test
> cd /tmp/test
> git init
Initialized empty Git repository in /tmp/test/.git/
> git annex init test
init test ok
> touch foo
> cd
> git --git-dir=/tmp/test/.git --work-tree=/tmp/test annex add foo
git-annex: Not in a git repository.
2011-08-09 13:00:21 +00:00
regular git add works:
2011-08-09 13:02:32 +00:00
> git --git-dir =/tmp/test/.git --work-tree=/tmp/test add foo
> git --git-dir=/tmp/test/.git --work-tree=/tmp/test status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: foo
#
2011-08-09 13:00:21 +00:00
git-annex version: 3.20110702