# git diff --ignore-submodules fails if submodule is inaccessible

2 messages from 2012-06-25 to 2012-06-25. Participants: Orgad and Raizel Shaneh, Jens Lehmann.
Thread: https://gitlist.dev/t/30894

## Orgad and Raizel Shaneh, 2012-06-25 15:01

Subject: git diff --ignore-submodules fails if submodule is inaccessible
Message-ID: <CAGHpTBL=hHazYv09KxADi3xa5s1TM2KNFteg4E=uW0WYDy_kxA@mail.gmail.com>
URL: https://gitlist.dev/e/CAGHpTBL%3DhHazYv09KxADi3xa5s1TM2KNFteg4E%3DuW0WYDy_kxA%40mail.gmail.com

```
Hello,

I have a submodule set up with a gitfile which points to an absolute path.

Trying to access the superproject from the network, running 'git diff
--ignore-submodules' yields 'fatal: Not a git repository:
<submodule-absolute-path>'.

It should really ignore submodules when requested...

- Orgad

```

## Jens Lehmann, 2012-06-25 16:59

Subject: Re: git diff --ignore-submodules fails if submodule is inaccessible
Message-ID: <4FE898F9.5050409@web.de>
URL: https://gitlist.dev/e/4FE898F9.5050409%40web.de
In-Reply-To: <CAGHpTBL=hHazYv09KxADi3xa5s1TM2KNFteg4E=uW0WYDy_kxA@mail.gmail.com>

```
Am 25.06.2012 17:01, schrieb Orgad and Raizel Shaneh:
> I have a submodule set up with a gitfile which points to an absolute path.
> 
> Trying to access the superproject from the network, running 'git diff
> --ignore-submodules' yields 'fatal: Not a git repository:
> <submodule-absolute-path>'.
> 
> It should really ignore submodules when requested...

Yes. I can reproduce that here and will look into it.

```
