Re: [Bug report] git fetch/push fails from sub-directory
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 20, 2011, 21:59 UTC
- Message-ID
- <7v62km6fjl.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <j5b1qa$pki$1@dough.gmane.org>
Frederic Heitzmann <frederic.heitzmann@gmail.com> writes:
> I found a bug in git fetch, with local repositories.
> cd repo2 > git fetch ../repo1 # OK > cd d > git fetch ../../repo1 # failed
It has always been like this. You can give a full path to the repository from the root, or perhaps define a nickname to refer to the remote (see "git remote add") and use it instead.