From 065e1a507b74e8e41017a1a5368fc2b8aaac7f19 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawm4or5sJLWB0evPKp70Q2OND-JmFPnOkLA" Date: Tue, 9 Aug 2011 13:00:21 +0000 Subject: [PATCH] --- .../--git-dir_and_--work-tree_options.mdwn | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 doc/bugs/--git-dir_and_--work-tree_options.mdwn diff --git a/doc/bugs/--git-dir_and_--work-tree_options.mdwn b/doc/bugs/--git-dir_and_--work-tree_options.mdwn new file mode 100644 index 0000000000..2e5d1cf0c8 --- /dev/null +++ b/doc/bugs/--git-dir_and_--work-tree_options.mdwn @@ -0,0 +1,28 @@ +git-annex does not take into account the --git-dir and --work-tree command line options (while they can be useful when scripting). + +> 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. + +regular git add works: +> 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 ..." to unstage) +# +# new file: foo +# + +git-annex version: 3.20110702 +