Skip to content

Gitblit is live #1300

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

Open
smeligrana opened this issue Oct 30, 2018 · 14 comments
Open

Gitblit is live #1300

smeligrana opened this issue Oct 30, 2018 · 14 comments

Comments

@smeligrana
Copy link

Hello,
    but is the gitblit project still alive?

Thanks

@rnveach
Copy link

rnveach commented Oct 30, 2018

similar to #1265 and #1274

@flaix
Copy link
Member

flaix commented Oct 30, 2018 via email

@carstenartur
Copy link

Great to hear that there is still somebody taking care. I could make use of it but the list of changes I would like to see seems to be long.
Eg. for the junit tests it is accessing a non existing github repository at
https://github.com/git/hello-world.git
Played around with it at https://github.com/carstenartur/gitblit but still no real success.

@smeligrana
Copy link
Author

do you need a hand?

@flaix
Copy link
Member

flaix commented Nov 2, 2018 via email

@carstenartur
Copy link

I created a github repository for the tests and changed the code to use it but it does not look like it is really completely working. So I guess there is a kind of compatibility problem with github and gitblit/jgit now. You can see what I tested in my fork. In the end I think it is a good idea to have a test checking compatibility as an integration test. However for all other tests we should use the jgit in memory git repository. It is fast and should be suitable for nearly all cases where you need an externel repository.

@rnveach
Copy link

rnveach commented Nov 2, 2018

A while ago, I started an example of adding a test for some servlets and wickets for using in-memory created repositories as an example of how I think tests should go for the repository. Seems similar to @carstenartur mentioned but I couldn't find his new tests in his repository.

See rnveach@d4b7fec#diff-40dc38b8e1cc8224c3b9602657444c93 and rnveach@d2a6014#diff-498dd45fb46cf0c53e2a8da9454edb0b

@fzs If this is the way you want to go, I can start a PR bringing the basics of what I have in and anyone can start extending it.

@carstenartur
Copy link

@rnveach I did not yet create new tests using the described approach with a in memory repository using jgit in gitblit. I did it in another project. In the gitblit fork I just changed the reference to the github repository to a newly created one.
see carstenartur@0a54e61
https://github.com/carstenartur/hello-world.git
But as I said I must have made something wrong or there is a incompatibility, not sure about this.

@smeligrana
Copy link
Author

@carstenartur to solve the problem of the repository (helloworld) I have created one with jgit in the tmp folder. https://github.com/smeligrana/gitblit

@wirmachenbunt
Copy link

bump
a new release would be totally cool. especially if the collapsible group feature gets merged

@chirontt
Copy link

I've tried to use carstenartur's and smeligrana's hello-world.git repos but they don't pass the tests, due to the facts that many tests require specific things present in that repo, such as it should contain a "java.java" file with at least 2 commits to it, or the number of commits since 2008-07-15 is exactly 12, etc.

I've now re-created the hello-world.git repo fitting the above test requirements. I've checked it into my fork at @chirontt/gitblit, to the src/test/data folder. Please have a go at it. As of now, the failures in GitBlitSuite test suite in my fork are now reduced to just 2 classes: LuceneExecutorTest and RedisTicketServiceTest.

RedisTicketServiceTest can't be fixed because it requires an external Redis service. Maybe it could be fixed with a mock Redis service? or a Redis service simulation (like @SpectoLabs/hoverfly)?

LuceneExecutorTest need someone with better knowledge of Lucene to work out why it fails, as I'm baffled by it.

@wirmachenbunt
Copy link

@chirontt , can you make a release / compile with all the changes since 2016 ?

@chirontt
Copy link

chirontt commented May 9, 2019

A release has to be done by a member of the gitblit team, not by me.

@wirmachenbunt, you can build it yourself from the master source at @gitblit/gitblit which should include all changes committed since the last release (1.8.0, in June 2016).

Assuming you have the following commands available in your path: git, ant, javac (from the JDK), then you can just clone the official gitblit repository to your local drive at the command-line:

git clone http://github.com/gitblit/gitblit.git

You would have a gitblit subfolder containing the complete source code of gitblit. Go into that gitblit folder and run:

ant buildGO

to build the gitblitGO server program, available in the build/target/gitblit-1.9.0-SNAPSHOT.zip (for Windows) or build/target/gitblit-1.9.0-SNAPSHOT.tar.gz (for Linux)

If you want to produce just the gitblit.war file, the build command is:

ant buildWAR

and the war file would be produced in build/target/gitblit-1.9.0-SNAPSHOT.war

@chirontt
Copy link

chirontt commented May 15, 2019 via email

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

6 participants