git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git clone fatal when using git-shell account

From
Denis Bueno <dbueno@gmail.com>
Date
Jun 30, 2008, 18:05 UTC
Message-ID
<6dbd4d000806301105x77b853caj404a1001dc4749a7@mail.gmail.com>

I have a machine containing a "central" git repo, which I access via SSH using an account that uses /bin/bash. From my laptop, doing a clone works. But when I change the shell on the central machine to git-shell (which is listed in /etc/shells), the clone fails.

Clone using /bin/bash:
    tmp[82] > git clone ssh://cameron@churn/Users/Shared/src/jmatch.git
    Initialize jmatch/.git
    Initialized empty Git repository in /private/tmp/jmatch/.git/
    Password:
    remote: Counting objects: 1690, done.
    remote: Compressing objremote: ects: 100% (1239/1239), done.
    remote: Total 1690 (delta 424), reused 1683 (delta 422)
    Receiving objects: 100% (1690/1690), 3.62 MiB | 2332 KiB/s, done.
    Resolving deltas: 100% (424/424), done.
Clone using /opt/local/bin/git-shell:
    tmp[81] > git clone ssh://cameron@churn/Users/Shared/src/jmatch.git
    Initialize jmatch/.git
    Initialized empty Git repository in /private/tmp/jmatch/.git/
    Password:
    fatal: The remote end hung up unexpectedly
Laptop (Tiger OS X 10.4.11):
    git version 1.5.6.1
Central (Leopard OS X 10.5):
    git version 1.5.6.1
Configuration of repository:
[core]
        repositoryformatversion = 0
        filemode = true
        bare = true
        ignorecase = true
        sharedrepository = 1
[receive]
        denyNonFastforwards = true

I couldn't find this issue discussed anywhere, so, I post in hope that someone has run into it before.

-- 
                              Denis
Message 1 of 1 in “Git clone fatal when using git-shell account”
  1. Denis BuenoJun 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.