Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Add existing git repository using local path

Is it possible to specify just path of the local repository like: "/home/git/repositoryName.git"

Since the main git repository and fisheye are running in the same server, it should be possible to do it without any authentication. Just system user fisheye must have permissions to access the git repository, right?

I've tried it several times, but with no luck so far.

Getting errors like:

======

Error

Unable to clone remote repository: /path/to/existing/repository.git - [fatal: Could not switch to '/path/to/existing': Permission denied]
---

Error testing connection.
Error talking to repository:

fatal: '/path/to/existing/repository.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:143)
at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:444)
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:553)
at sun.reflect.GeneratedMethodAccessor620.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Connection failed.

======

The permissions are correct. Can anyone please tell me, what's causing this issue? Why the local git repository cannot be easily mapped via path?

We have a lot of projects and even more git repositories... It would much more comfortable if we don't have to create an ssh certificate for each repository instance in fisheye.

1 answer

1 accepted

1 vote
Answer accepted
lpater Atlassian Team Mar 20, 2013

Hi Jakub,

it definitely should be possible. What version of FishEye are you running? Make sure that the user the FishEye process is running as has the permissions to access the directory, that the git executable is set up, and runnable by the user. You could also try using a file:// url (file:///home/git/repo.git/). If that still fails please enable debug logging, try setting the repository again and request help at https://support.atlassian.com/

For your setup you might also find the FishEye Directory Scanner (https://marketplace.atlassian.com/plugins/com.atlassian.fisheye.repositron) plugin useful - it allows automatically scanning and setting up all repositories in the given directory.

Best regards,

Łukasz

Thanks for reply. After all the problem seems to be in permissions. FishEye requires read permissions for others on the target repository which is very inconvenient.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Do Not Lose your Customer’s Trust

Missing deadlines is one of the biggest problems every team lead wants to avoid when dealing with managed services. When the customer contracts your company to help with IT services it is expected th...

24 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you