WebFaction
Community site: login faq

Hello,

I have looked through the related questions here, but there seems to be something more that I am missing / not understanding.

I have a git app setup at /home/myuser/webapps/git, and a redmin application running at /home/myuser/webapps/redmine. Both are working fine. In the project settings of my redmine project I would like to connect a git repo. I have created the repo with "git init --bare reponame.git" and in remine I have added the path to the repo "/home/myuser/webapps/git/repos/reponame.git".

But when I try to connect through the redmine webinterface redmine displays an error: "404 The entry or revision was not found in the repository."

Any tips would be greatly appreciated, thanks in advance, Alex

asked 14 Feb '15, 13:12

alexgustafson
1114
accept rate: 0%

edited 15 Feb '15, 10:14


There is some info in the redmine forum on this, try cloning the repo with the --bare flag.

permanent link

answered 14 Feb '15, 22:15

johns
5.4k312
accept rate: 23%

Yes, that did it. Thanks for the answer.

When i tried with "git init --bare reponame.git" I got the error, but when I cloned a previously existing repo using the --bare flag everything worked as expected thanks. Still not sure why initializing a new repo doesnt work.

note: in my question i had typed --base. That was a typo, I meant --bare. I will edit my question.

(15 Feb '15, 10:13) alexgustafson
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×111
×46
×1

question asked: 14 Feb '15, 13:12

question was seen: 3,655 times

last updated: 02 Mar '15, 05:08

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM