Thread (7 messages) flat view 7 messages, 3 authors, 2016-06-15

Re: "git pull" doesn't respect --work-tree parameter

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:50:17

On Tue, Dec 21, 2010 at 11:04 PM, Alexey Zakhlestin [off-list ref] wrote:
I am trying to use the following command:

git '--git-dir=/path/to/repository/.git' '--work-tree=/path/to/repository' pull

and get this error:
"git-pull cannot be used without a working tree"
It works fine for me. What's the result of

git '--git-dir=/path/to/repository/.git'
'--work-tree=/path/to/repository' --git-dir
git '--git-dir=/path/to/repository/.git'
'--work-tree=/path/to/repository' --is-inside-work-tree
git '--git-dir=/path/to/repository/.git'
'--work-tree=/path/to/repository' --show-toplevel

?

Also what version of git are you using?
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help