# git gui does not open bare repositories

11 messages from 2012-09-28 to 2012-10-01. Participants: Angelo Borsotti, Frans Klaver, Stefan Näwe, Ben Smith-Mannschott.
Thread: https://gitlist.dev/t/31670

## Angelo Borsotti, 2012-09-28 07:50

Subject: git gui does not open bare repositories
Message-ID: <CAB9Jk9CA+e8xR9sz7cW+5+990FmTeYN3pjxs4ZKFpkzb6OL35Q@mail.gmail.com>
URL: https://gitlist.dev/e/CAB9Jk9CA%2Be8xR9sz7cW%2B5%2B990FmTeYN3pjxs4ZKFpkzb6OL35Q%40mail.gmail.com

```
Hello,

I have created a bare repository:

$ mkdir remote.git

angelo@ANGELO-PC /d/gtest (master)
$ git init --bare
Initialized empty Git repository in d:/gtest/

and then tried to open it with the git gui, but have got the message:
"remote.git is not a git repository".

The git gui is the one that I have downloaded from the git web site for windows:

gt-gui version 0.16.GITGUI
git version 1.7.11.msysgit.1

Thank you
-Angelo Borsotti

```

## Frans Klaver, 2012-09-28 08:08

Subject: Re: git gui does not open bare repositories
Message-ID: <CAH6sp9N1cFH7orPNmfbhgHq6oUNtQNe=-5f5jkYNXzr+6Xp_pQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAH6sp9N1cFH7orPNmfbhgHq6oUNtQNe%3D-5f5jkYNXzr%2B6Xp_pQ%40mail.gmail.com
In-Reply-To: <CAB9Jk9CA+e8xR9sz7cW+5+990FmTeYN3pjxs4ZKFpkzb6OL35Q@mail.gmail.com>

```
On Fri, Sep 28, 2012 at 9:50 AM, Angelo Borsotti
<angelo.borsotti@gmail.com> wrote:

> I have created a bare repository:
>
> $ mkdir remote.git
>
> angelo@ANGELO-PC /d/gtest (master)
> $ git init --bare
> Initialized empty Git repository in d:/gtest/

This creates a bare repository in d:/gtest, not in
d:/gtest/remote.git. You'll need to cd into remote.git to create a
bare repo.


> and then tried to open it with the git gui, but have got the message:
> "remote.git is not a git repository".

So this message is correct.

Be as it may, as soon as you've initialized the repo as required, git
gui will (probably) tell you:

"Cannot use bare repository:

d:/gtest/remote.git"

So nothing gained there. So I'm wondering what you expect git gui to
give you in a bare repo? It seems to me that this tool is specifically
aimed at non-bare repos, allowing for creating commits, merges and
whatnot; all things you cannot typically do in a bare repo.


Frans

```

## Frans Klaver, 2012-09-28 08:35

Subject: Re: git gui does not open bare repositories
Message-ID: <CAH6sp9ME0og0E-=oW6MBFMBv8hD0y8PpmdpyaV4qqr7Mb7c5VA@mail.gmail.com>
URL: https://gitlist.dev/e/CAH6sp9ME0og0E-%3DoW6MBFMBv8hD0y8PpmdpyaV4qqr7Mb7c5VA%40mail.gmail.com
In-Reply-To: <CAB9Jk9BivVrH7daMR=u5Y6Ut=pZGRBcgKNZ_afZ53XFxhFBnZw@mail.gmail.com>

```
Hi,

Please remember to reply to all when discussing things on the git mailing list.

On Fri, Sep 28, 2012 at 10:29 AM, Angelo Borsotti
<angelo.borsotti@gmail.com> wrote:
> Hello
>
> I apologise for having used the wrong script to reproduce the error.
> This is  the right one:
>
> angelo@ANGELO-PC /d/gtest (master)
> $ mkdir remote.git
>
> angelo@ANGELO-PC /d/gtest (master)
> $ cd remote.git
>
> angelo@ANGELO-PC /d/gtest/remote.git (master)
> $ git init --bare
> Initialized empty Git repository in d:/gtest/remote.git/
>
> Now with the git gui I try to open the d:/gtest/remote.git/ and
> receive the message
> that it is not a git repository.
>
> I understand that the gui is mostly aimed to non-bare repositories,
> but in such a case
> it would be better it could give me a message like, e.g. "could not
> open a bare repository"
> instead of telling me that it is not a git repository (I thought my
> bare repository was
> corrupt, and tried to figure out what was wrong with it).


Actually git-gui 0.16.0 is telling me that it cannot use bare
repositories, much in the vein of what I wrote earlier. Don't know if
it matters that I'm on Linux though.


Frans

```

## Stefan Näwe, 2012-09-28 08:44

Subject: Re: git gui does not open bare repositories
Message-ID: <50656388.3050400@atlas-elektronik.com>
URL: https://gitlist.dev/e/50656388.3050400%40atlas-elektronik.com
In-Reply-To: <CAH6sp9ME0og0E-=oW6MBFMBv8hD0y8PpmdpyaV4qqr7Mb7c5VA@mail.gmail.com>

```
Am 28.09.2012 10:35, schrieb Frans Klaver:
> Hi,
> 
> Please remember to reply to all when discussing things on the git mailing list.
> 
> On Fri, Sep 28, 2012 at 10:29 AM, Angelo Borsotti
> <angelo.borsotti@gmail.com> wrote:
>> Hello
>>
>> I apologise for having used the wrong script to reproduce the error.
>> This is  the right one:
>>
>> angelo@ANGELO-PC /d/gtest (master)
>> $ mkdir remote.git
>>
>> angelo@ANGELO-PC /d/gtest (master)
>> $ cd remote.git
>>
>> angelo@ANGELO-PC /d/gtest/remote.git (master)
>> $ git init --bare
>> Initialized empty Git repository in d:/gtest/remote.git/
>>
>> Now with the git gui I try to open the d:/gtest/remote.git/ and
>> receive the message
>> that it is not a git repository.
>>
>> I understand that the gui is mostly aimed to non-bare repositories,
>> but in such a case
>> it would be better it could give me a message like, e.g. "could not
>> open a bare repository"
>> instead of telling me that it is not a git repository (I thought my
>> bare repository was
>> corrupt, and tried to figure out what was wrong with it).
> 
> 
> Actually git-gui 0.16.0 is telling me that it cannot use bare
> repositories, much in the vein of what I wrote earlier. Don't know if
> it matters that I'm on Linux though.

I get "Not a Git repository: remote.git" as well, when I run
git gui "somewhere" (i.e. not in "remote.git") and the select 
"Open Existing Repository".

I get "Cannot use bare repository: .../remote.git" when I run git gui
from inside the "remote.git" directory.

Both on WinXP with msysGit.

Stefan
-- 
----------------------------------------------------------------
/dev/random says: Unless you're the lead dog, the view never changes.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"

```

## Angelo Borsotti, 2012-09-28 08:56

Subject: Re: git gui does not open bare repositories
Message-ID: <CAB9Jk9D8ZptEcBhCdzxUtWhKD__mYZ-J_TZQr70dOvED2uB0SQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAB9Jk9D8ZptEcBhCdzxUtWhKD__mYZ-J_TZQr70dOvED2uB0SQ%40mail.gmail.com
In-Reply-To: <50656388.3050400@atlas-elektronik.com>

```
Then the misleading message is due to the Italian localization of the git gui.

-Angelo

```

## Angelo Borsotti, 2012-09-28 12:09

Subject: Re: git gui does not open bare repositories
Message-ID: <CAB9Jk9C=ndfO37YWS5mg4anu91N4O__iA_msmxU+X2_Nakv-tQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAB9Jk9C%3DndfO37YWS5mg4anu91N4O__iA_msmxU%2BX2_Nakv-tQ%40mail.gmail.com
In-Reply-To: <50656388.3050400@atlas-elektronik.com>

```
I have removed the Italian localization so as to make git gui use the
English one.
The result is the same as I have found before.
The message is: " Not a Git repository: remote.git".
Thus, the misleading message is there.

-Angelo

```

## Ben Smith-Mannschott, 2012-09-28 14:15

Subject: Re: git gui does not open bare repositories
Message-ID: <CAJ_tm-Q2=ZpUQVHG1om5cfhqoLpCwo2fNoqcWOa-n00-h0raOQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAJ_tm-Q2%3DZpUQVHG1om5cfhqoLpCwo2fNoqcWOa-n00-h0raOQ%40mail.gmail.com
In-Reply-To: <CAB9Jk9C=ndfO37YWS5mg4anu91N4O__iA_msmxU+X2_Nakv-tQ@mail.gmail.com>

```
Hi Angelo,

On Fri, Sep 28, 2012 at 2:09 PM, Angelo Borsotti
<angelo.borsotti@gmail.com> wrote:
> I have removed the Italian localization so as to make git gui use the
> English one.
> The result is the same as I have found before.
> The message is: " Not a Git repository: remote.git".
> Thus, the misleading message is there.

I'm not seeing what you're seeing. I'm running git 1.7.12.1 and I get
exactly this message:

    Cannot use bare repository:

    /Users/bsmith/tmp/repo.git

When I do exactly this:

    $ cd ~/tmp
    $ mkdir repo.git
    $ cd repo.git
    $ git init --bare
    $ git gui

What, exactly, are you doing?

// Ben

```

## Angelo Borsotti, 2012-09-28 16:46

Subject: Re: git gui does not open bare repositories
Message-ID: <CAB9Jk9AN39+RaNWX+DDEq9wVzJJBV-bjcDnUz6Ofy+baveU-8w@mail.gmail.com>
URL: https://gitlist.dev/e/CAB9Jk9AN39%2BRaNWX%2BDDEq9wVzJJBV-bjcDnUz6Ofy%2BbaveU-8w%40mail.gmail.com
In-Reply-To: <CAJ_tm-Q2=ZpUQVHG1om5cfhqoLpCwo2fNoqcWOa-n00-h0raOQ@mail.gmail.com>

```
Hi Ben,

I am running git gui on Windows 7. Are you running it on Linux?

-Angelo

```

## Angelo Borsotti, 2012-09-28 18:22

Subject: Re: git gui does not open bare repositories
Message-ID: <CAB9Jk9AAg3+JVxp1NVbAbZd00EfsWGMKBhZ1R-i0ZYeUZcEaYg@mail.gmail.com>
URL: https://gitlist.dev/e/CAB9Jk9AAg3%2BJVxp1NVbAbZd00EfsWGMKBhZ1R-i0ZYeUZcEaYg%40mail.gmail.com
In-Reply-To: <CAJ_tm-Q2=ZpUQVHG1om5cfhqoLpCwo2fNoqcWOa-n00-h0raOQ@mail.gmail.com>

```
Hi Ben,

I run the same test on Linux, and have got the same results as you did.
So the problem is only on Windows.

-Angelo

```

## Ben Smith-Mannschott, 2012-09-28 19:43

Subject: Re: git gui does not open bare repositories
Message-ID: <CAJ_tm-S5kF2R-saQq6ER6669g6ND5k9ymuA0g_d+Ze3x_N3HaQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAJ_tm-S5kF2R-saQq6ER6669g6ND5k9ymuA0g_d%2BZe3x_N3HaQ%40mail.gmail.com
In-Reply-To: <CAB9Jk9AN39+RaNWX+DDEq9wVzJJBV-bjcDnUz6Ofy+baveU-8w@mail.gmail.com>

```
On Fri, Sep 28, 2012 at 6:46 PM, Angelo Borsotti
<angelo.borsotti@gmail.com> wrote:
> Hi Ben,
>
> I am running git gui on Windows 7. Are you running it on Linux?
>
> -Angelo

Mac OS X

// Ben

```

## Stefan Näwe, 2012-10-01 06:22

Subject: Re: git gui does not open bare repositories
Message-ID: <5069369D.40402@atlas-elektronik.com>
URL: https://gitlist.dev/e/5069369D.40402%40atlas-elektronik.com
In-Reply-To: <50656388.3050400@atlas-elektronik.com>

```
Am 28.09.2012 10:44, schrieb Stefan Näwe:

> I get "Not a Git repository: remote.git" as well, when I run
> git gui "somewhere" (i.e. not in "remote.git") 

i.e.:

  $ cd /not/a/repo
  $ git gui

> and the select "Open Existing Repository".
> 
> I get "Cannot use bare repository: .../remote.git" when I run git gui
> from inside the "remote.git" directory.

i.e.:

  $ cd /path/to/bare-repo.git
  $ git gui

> Both on WinXP with msysGit.

And the same on Linux with Git v1.7.12

Stefan
-- 
----------------------------------------------------------------
/dev/random says: Press any key to continue or any other key to quit...
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"

```
