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

Add GitLab support #1

Open
JakeWharton opened this issue Apr 10, 2020 · 6 comments
Open

Add GitLab support #1

JakeWharton opened this issue Apr 10, 2020 · 6 comments
Labels
enhancement New feature or request icebox Issues which are not urgent
Milestone

Comments

@JakeWharton
Copy link
Owner

No description provided.

@JakeWharton JakeWharton added this to the 1.0.0 milestone May 18, 2020
@JakeWharton JakeWharton added the enhancement New feature or request label May 20, 2020
@JakeWharton
Copy link
Owner Author

Can't go through GraphQL yet because of https://gitlab.com/gitlab-org/gitlab/-/issues/196170

@JakeWharton
Copy link
Owner Author

v4 REST API should be usable, but perhaps punt for a while

@JakeWharton JakeWharton added the icebox Issues which are not urgent label May 21, 2020
@johnjohndoe
Copy link

I was confused for a bit because the configuration specification in the README.md contains:

# Repos not on GitHub to synchronize.
[git.repos]
asm = "https://gitlab.ow2.org/asm/asm.git"

This led me to try to gitout some GitLab repositories. Once I cloned them and checked with git log this error is output:

$ git log
fatal: your current branch 'master' does not have any commits yet

Maybe, the README.md should clarify that GitLab doesn't work yet or replace the example URL?

@JakeWharton
Copy link
Owner Author

Does git log work in bare repositories?

This feature is for discovering your repositories through your GitLab username. You're always able to clone any git repo from anywhere if you list the full URL.

@johnjohndoe
Copy link

johnjohndoe commented Mar 15, 2021

Does git log work in bare repositories?

Yes. If I clone a repository (e.g. git clone --bare https://github.com/JakeWharton/gitout.git) then I can successfully invoke git log.

This feature is for discovering your repositories through your GitLab username.

Thanks for the clarification.

You're always able to clone any git repo from anywhere if you list the full URL.

The full URL, e.g. https://gitlab.com/oeffi/oeffi or https://gitlab.com/oeffi/oeffi.git works for cloning it seems but then git log fails as stated before.

Here is the configuration file - just in case:

version = 0

[git.repos]
gitout = "https://github.com/JakeWharton/gitout.git" # git log doesn't work here
oeffi = "https://gitlab.com/oeffi/oeffi.git" # git log doesn't work here

@JakeWharton
Copy link
Owner Author

Thanks I'll play with it. We delegate everything to libgit2 which can have differing behavior from git proper. At worst, I just create a repro and file a bug upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request icebox Issues which are not urgent
Projects
None yet
Development

No branches or pull requests

2 participants