diff options
author | Joey Hess <joey@kitenet.net> | 2011-12-02 16:15:18 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-12-02 16:15:18 -0400 |
commit | 6f29f9db725131d37af86e2746ff83a6765b4239 (patch) | |
tree | c6f6dd77c164d5ac1fd53e354df6e517751d7e96 /doc/bugs/on--git-dir_and_--work-tree_options.mdwn | |
parent | e19dc8554723a148e6b809da4989a747f3aa925e (diff) |
rename
Diffstat (limited to 'doc/bugs/on--git-dir_and_--work-tree_options.mdwn')
-rw-r--r-- | doc/bugs/on--git-dir_and_--work-tree_options.mdwn | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/bugs/on--git-dir_and_--work-tree_options.mdwn b/doc/bugs/on--git-dir_and_--work-tree_options.mdwn new file mode 100644 index 000000000..d76a42bff --- /dev/null +++ b/doc/bugs/on--git-dir_and_--work-tree_options.mdwn @@ -0,0 +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. + +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-annex version: 3.20110702 + |