Re: "git pull" doesn't respect --work-tree parameter
From: Alexey Zakhlestin <hidden>
Date: 2016-06-15 22:50:17
On Wed, Dec 22, 2010 at 2:44 PM, Nguyen Thai Ngoc Duy [off-list ref] wrote:
On Wed, Dec 22, 2010 at 6:40 PM, Alexey Zakhlestin [off-list ref] wrote:quoted
On Wed, Dec 22, 2010 at 2:20 PM, Nguyen Thai Ngoc Duy [off-list ref] wrote:quoted
On Tue, Dec 21, 2010 at 11:04 PM, Alexey Zakhlestin [off-list ref] wrote:quoted
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-dirNo directory given for --git-dir.quoted
git '--git-dir=/path/to/repository/.git' '--work-tree=/path/to/repository' --is-inside-work-treeUnknown option: --is-inside-work-treequoted
git '--git-dir=/path/to/repository/.git' '--work-tree=/path/to/repository' --show-toplevelUnknown option: --show-toplevelSorry I forgot the command name (rev-parse). The full command should be "git --git-dir=... --work-tree=... rev-parse <option>" where option is --git-dir, --is-inside-work-tree, --show-toplevel. Can you please try again?
1) returns correct path: /Users/indy/Documents/Sources/_mine/midgard/mvc/_rdf/midgardmvc_core/.git 2) false 3) returns correct path, again: /Users/indy/Documents/Sources/_mine/midgard/mvc/_rdf/midgardmvc_core just to make myself clear: $PWD is another path, not related to repository path -- Alexey Zakhlestin, http://twitter.com/jimi_dini http://www.milkfarmsoft.com/