summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawm4or5sJLWB0evPKp70Q2OND-JmFPnOkLA <Christophe-Marie@web>2011-08-09 13:02:32 +0000
committerGravatar admin <admin@branchable.com>2011-08-09 13:02:32 +0000
commit1e934c29d66f44ff074a9d02004e2bd6abb90462 (patch)
tree2a6f29a72d9c661996c488e3f112e22d853948b5
parent065e1a507b74e8e41017a1a5368fc2b8aaac7f19 (diff)
-rw-r--r--doc/bugs/--git-dir_and_--work-tree_options.mdwn43
1 files changed, 22 insertions, 21 deletions
diff --git a/doc/bugs/--git-dir_and_--work-tree_options.mdwn b/doc/bugs/--git-dir_and_--work-tree_options.mdwn
index 2e5d1cf0c..ebae56b04 100644
--- a/doc/bugs/--git-dir_and_--work-tree_options.mdwn
+++ b/doc/bugs/--git-dir_and_--work-tree_options.mdwn
@@ -1,28 +1,29 @@
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.
+ > 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 <file>..." to unstage)
-#
-# new file: foo
-#
+
+ > 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
+ #
git-annex version: 3.20110702