Results 1 to 4 of 4

Thread: gitosis will not create new server repo

  1. #1
    Join Date
    Aug 2009
    Location
    Montreal, Canada
    Beans
    13

    Unhappy gitosis will not create new server repo

    I followed these instructions to the point where I push my new repo to origin. The instructions were fine except that gitosis-admin.git was available under the git directory, like this:
    Code:
    gitosis@domain.com:git/gitosis-admin.git
    The instructions had said that the URL should be:
    Code:
    gitosis@domain.com:gitosis-admin.git
    I was able to edit gitosis.conf and push to origin.
    Code:
    $ cat gitosis.conf
    [gitosis]
    
    [group gitosis-admin]
    members = gitosis,mslinn@asylum,mslinn@lhotse
    writable = gitosis-admin
    writeable = empathyworks
    
    [repo empathyworks]
    gitweb = no
    description = blah
    owner = Mike Slinn
    daemon = no
    When I push the new project, however, I get this:
    Code:
    $ git push origin master
    fatal: 'git/empathyworks.git' does not appear to be a git repository
    fatal: The remote end hung up unexpectedly
    I tried editing the new git repo's .git/conf file and removed the git directory, like this:
    Code:
    url = gitosis@domain.com:empathyworks.git
    ... but I still get the same type of message:
    Code:
    $ git push origin master
    fatal: 'empathyworks.git' does not appear to be a git repository
    fatal: The remote end hung up unexpectedly
    I even tried creating the directory of the new repo in /srv/gitosis/repositories/empathyworks.git and copying in the contents of the .git directory from my local machine but no joy.
    Last edited by mslinn; January 1st, 2012 at 12:27 AM.

  2. #2
    Join Date
    Feb 2012
    Beans
    1

    Re: gitosis will not create new server repo

    Have you solved this problem? I'm having the same issue

  3. #3
    Join Date
    Aug 2009
    Location
    Montreal, Canada
    Beans
    13

    Unhappy Re: gitosis will not create new server repo

    No, I gave up and hosted the repo on GitHub.

    Mike

  4. #4
    Join Date
    Sep 2011
    Beans
    1

    Re: gitosis will not create new server repo

    For future readers.

    Do the following in the server directory where you have the repositories to create a bare repository.

    git init --bare REPONAME.git

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •