git - JGit: BundleWriter Error when including Refs -


I am trying to create a git bundle of a repository using JGIT bundle vaator. I am trying to include all the rifers in my bundles like this:

  repository repo; // Valid repo bundle vitae bundle from somewhere else; = New bundle water (repo); Maps & lt; String, referee & gt; RefMap = repo.getAllRefs (); For (reference ref: refMap.values ​​()) {bundleworld included (ref); }   

Jazz throws an exception for the symbolic HEAD ref, which refers to the default branch (RFS / head / master)

  java. Lang.IllegalArgumentException: Invalid Referee Name: org.eclipse.jgit.transport.BundleWriter.include at HEAD (BundledWire. Java: 132)   

If I leave head symbolic ref then bundle It is fine, but, when bundled is cloned, the missing head reference causes the following error:

  Warning Ni: Remote head refers to any ref, unable to checkout   

I can manually check things back to normal but this is not ideal behavior because The bundle is being sent to other people who would expect it to work like any other GIT repository, the key reference in the default reference.

Can anyone offer advice or work so that the default branch is set when the bundle is cloned?

Thank you

The bug has been reported in JGIT (OP thinks by me is). It has already been decided and will be released in the next JGT version (3.6).

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -