Tag: java

Packfile is truncated error while cloning Git repository

I’m using Egit with Eclipse on Windows to try to clone a repository from private Git. It connects, but while downloading I get the “Packfile is truncated” error. My web browser and file explorer are both closed. Does anyone know what the problem could be? org.eclipse.jgit.api.errors.TransportException: Packfile is truncated. at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:187) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:127) […]

Mercurial v Git v Subversion

I need to choose a VCS to embed within a Java application I’m developing. The Java application will interact with the VCS via an API, but the user will also interact with it directly via an Eclipse plugin. 3 candidate VCS have been identified: Mercurial, Git and Subversion. I need to choose one based on […]

How do I import a local java library in clojure? (lein)

I’m trying to use a java library (jar file) called DragonConsole that is not on maven central or clojars. I want to import this library in my clojure application, but so far I can’t figure out how to do so. I tried setting up a local maven repo, but I don’t think I did it […]

Get repository from commit in jgit

I have a RevCommit (api) object. I want to get the Repository (api) object from it. My main goal is to get the origin url. So I planned to get Repository -> getConfig() -> -> load() -> getString(). How to get config object from RevCommit object? Is this the correct way to get origin url […]

How to count inserted/deleted lines in JGit

When we do git log –shortstat we get the number of lines inserted, deleted, and changed. Something like: 1 file changed, 9 insertions(+), 3 deletions(-) Please help me with getting the number of lines inserted, deleted, and changed. I am doing a repository clone to get git project on local machine. Here is the same […]

Similar Java access code (methods) of Git/JGit as SVNKit

I know much about SVN and accessing repositories from Java code using the SVNKit APIs. I am able to do these operations on SVN: Open a repository User’s authentication check before accessing a repository Validating an SVN URL Get the project list under a given URL Export a project/file by a given revision number Get […]

Is there any reason NOT to use git-masquerading-as-cvs as an upgrade to cvs?

We are using CVS for around 50 java-projects which we develop using Eclipse, and build using Hudson. We have now reached the point where we want to migrate to something better, and I am considering that using git masquerading as a CVS server might be exactly what would suit us in terms of learning curve. […]

Breaking a monolithic java app

I am in the process of breaking a monolithic Java application into smaller modules, so we can better tests, etc. I see most of the benefits but also some issues: The core application will have its own lifecycle. Each module will have its own lifecycle. My interrogations are around the process: I have done it […]

Hudson + Poll SCM – build upstream projects first?

We have a bunch of maven2 projects in Hudson, all set to Poll SCM at the same time. The problem is that there doesn’t seem to be an order in the way it polls and builds the projects. Ideally it would check the upstream projects first. I could set the poll SCM schedule to account […]

Branch vs Tag.. Coming from SVN world

I was working on a java, maven project using SVN. we all work off the trunk and once the project is tested and ready to be release we make a release branch. We are now moving to GIT, YAHOO… We all work on branches on the locals workstations then merNge them into the master and […]

Git Baby is a git and github fan, let's start git clone.