Skip to content

NPE: when pushing changes to newly forked repo #549

Description

@gitblit

Originally reported on Google Code with ID 253

What steps will reproduce the problem?
1. fork a repo
2. clone new repo locally
3. make/commit/push new change
4. GitBlit shows a NullPointerException

For the client, I use TortoiseGit, but this also happens on the command line.
If I restart the GitBlit server, then try to push, the command completes successfully.


What is the expected output? What do you see instead?
The expected output is for the push to complete. 

The server console shows:

INFO  ralim authenticated by BASIC request header from 10.244.140.66
INFO  ARF: ~ralim/ue_tracker.git/info/refs?service=git-receive-pack (100) authen
ticated
INFO  ralim authenticated by BASIC request header from 10.244.140.66
INFO  ARF: ~ralim/ue_tracker.git/git-receive-pack (100) authenticated
WARN  Internal error during receive-pack
java.lang.NullPointerException
        at java.util.AbstractCollection.addAll(AbstractCollection.java:303)
        at com.gitblit.GitServlet$GitblitReceiveHook.onPreReceive(GitServlet.java:275)
        at org.eclipse.jgit.transport.ReceivePack.service(ReceivePack.java:203)
        at org.eclipse.jgit.transport.ReceivePack.receive(ReceivePack.java:160)
        at org.eclipse.jgit.http.server.ReceivePackServlet.doPost(ReceivePackSer
vlet.java:187)


The output on the Client side shows:

Total 2 (delta 0), reused 0 (delta 0)
send-pack: protocol error: bad band #101
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

What version of the product are you using? On what operating system?
v.1.2.1

Please provide any additional information below.

Reported by rayjlim1 on 2013-06-11 18:14:32

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions