bug report rescued from forum
This commit is contained in:
parent
3826a553d7
commit
d1467a9b8e
2 changed files with 49 additions and 0 deletions
20
doc/bugs/When_--git-dir_is_not_in_--work-tree.mdwn
Normal file
20
doc/bugs/When_--git-dir_is_not_in_--work-tree.mdwn
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
Bug report incorrectly originally posted in the forum as
|
||||||
|
[[/forum/When_--git-dir_is_not_in_--work-tree]].
|
||||||
|
|
||||||
|
Simple test case:
|
||||||
|
|
||||||
|
joey@darkstar:~/src/git-annex>cd /tmp
|
||||||
|
joey@darkstar:/tmp>mkdir foo
|
||||||
|
joey@darkstar:/tmp>cd foo
|
||||||
|
joey@darkstar:/tmp/foo>git --git-dir=`pwd`/.dotfiles --work-tree=`pwd` init
|
||||||
|
Initialized empty Git repository in /tmp/foo/.dotfiles/
|
||||||
|
joey@darkstar:/tmp/foo>git --git-dir=`pwd`/.dotfiles --work-tree=`pwd` annex init
|
||||||
|
init
|
||||||
|
git-annex: Git refuses to operate in this repository,
|
||||||
|
probably because it is owned by someone else.
|
||||||
|
|
||||||
|
To add an exception for this directory, call:
|
||||||
|
git config --global --add safe.directory /tmp/foo
|
||||||
|
|
||||||
|
failed
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
[[!comment format=mdwn
|
||||||
|
username="joey"
|
||||||
|
subject="""comment 1"""
|
||||||
|
date="2022-09-20T18:08:29Z"
|
||||||
|
content="""
|
||||||
|
Simpler test case:
|
||||||
|
|
||||||
|
joey@darkstar:~/src/git-annex>cd /tmp
|
||||||
|
joey@darkstar:/tmp>mkdir foo
|
||||||
|
joey@darkstar:/tmp>cd foo
|
||||||
|
joey@darkstar:/tmp/foo>git --git-dir=`pwd`/.dotfiles --work-tree=`pwd` init
|
||||||
|
Initialized empty Git repository in /tmp/foo/.dotfiles/
|
||||||
|
joey@darkstar:/tmp/foo>git --git-dir=`pwd`/.dotfiles --work-tree=`pwd` annex init
|
||||||
|
init
|
||||||
|
git-annex: Git refuses to operate in this repository,
|
||||||
|
probably because it is owned by someone else.
|
||||||
|
|
||||||
|
To add an exception for this directory, call:
|
||||||
|
git config --global --add safe.directory /tmp/foo
|
||||||
|
|
||||||
|
failed
|
||||||
|
|
||||||
|
Anything like this is clearly a bug.
|
||||||
|
And this forum is not the place to file bug reports. Doing so risks
|
||||||
|
it being forgotten about because who is going to go back and check old
|
||||||
|
forum threads to see if they were a bug that didn't get fixed?
|
||||||
|
|
||||||
|
Here, I opened a bug report: [[bugs/When_--git-dir_is_not_in_--work-tree]]
|
||||||
|
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue