Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while cloning repo from gitlab #98

Open
zee7han opened this issue May 14, 2018 · 3 comments
Open

Error while cloning repo from gitlab #98

zee7han opened this issue May 14, 2018 · 3 comments

Comments

@zee7han
Copy link

zee7han commented May 14, 2018

I am getting the error as "Invalid repo/repo is not accessible" while scanning the project.
this Error occurs because of the file "jackhammer/web/app/app/workers/git_scan_worker.rb" in line 25.

Just showing like that unable to clone the repository

@kmadhusudhan
Copy link
Contributor

@zee7han

  1. You need to give the complete GitHub repository URL
  2. if it is the private project, you need to configure your git credentials from the admin page
  3. Please do manual cloning in the terminal, if it works then give the same URL as the target

@zee7han
Copy link
Author

zee7han commented Jun 8, 2018

@kmadhusudhan

  1. It is a private repo.
  2. I configure the gitlab credentials successfully, it fetches all the information from the gitlab repos.
    but when I try to scan a project it shows me invalid repo URL error.
  3. when I checked for the MySQL DB there is a column "ssh_repo_url" but it stores the HTTP URL to the repo.
    when I try to scan it shows me invalid repo URL error.
  4. most probably its an error in "git_scan_worker.rb" file when it tries to clone the repository from the gitlab.

@kmadhusudhan
Copy link
Contributor

column name is ssh_repo_url , but it holds the git http url . please check cloning inside docker,using git clone https://username:[email protected]/username/repo . if it is not working, then you need remove some special characters from your password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants