Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Unable to push branch created locally when File Hooks plugin is enabled

We have run into a bug using the File Hook plugin, when creating branches locally and trying to push them to the Bitbucket server.


At the time of the push, the local UI shows the following error: 

$ git push origin test-branch
Total 0 (delta 0), reused 0 (delta 0)
remote: Communication breakdown with Bitbucket.
To https://xxx/scm/dl/test.git
! [remote rejected] test-branch -> test-branch (pre-receive hook declined)
error: failed to push some refs to 'https://xxx@xxx/scm/dl/test.git'


The server logs show the following error (stacktrace severely trimmed to due Atlassian posting rules):

com.atlassian.stash.internal.plugin.legacy.CompositeRepositoryHook.preUpdate (org.christiangalsterer.stash-filehooks-plugin:filename-hook)
com.atlassian.bitbucket.commit.NoSuchCommitException: Commit '0000000000000000000000000000000000000000' does not exist in repository 'test'.
at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.newNoSuchCommitException(

Disabling the File Hooks plugin enables us to push the new branches but this is of course not ideal.


We are running Bitbucket 5.0.4 (with plans to upgrade to latest soon) and File Hooks plugin 3.0.0.


Anyone aware of plans to fix this issue?







We are seeing exactly the same after we upgraded to Bitbucket 5.2.3 and File Hooks plugin 3.0.0 this weekend.

Have you had any luck in resolving the issue?

No, we had to disable the hook in hopes that a fix was forthcoming. We will have to look at alternatives at this point.

Thanks for gettting back. This is disencouraging, but I have emailed Christian Galsterer about the matter. Hoping for a reply and hopefully a fix from him.

Please have him contribute to this discussion if he can, or if there is already another official thread on this issue, please link to it.




Has this thread been resolved? 

Because I have found the same stacktrace


But it is not File Hooks plugin. 



Thank you

No resolution that I'm aware of. Mr. Galsterer have not replied to me. From what I can see in the commit log of the File Hooks plugin the last change from July 23 might be related to this issue, but no release yet.

This condition is helped me.:)

if (refChange.getFromHash().equals("0000000000000000000000000000000000000000")) {
request = new CommitsBetweenRequest.Builder(repository)
} else {
request = new CommitsBetweenRequest.Builder(repositoryHookRequest.getRepository())

A new version 3.0.1 is now available in the Atlassian Marketplace containing a fix for this.

Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 12, 2017


This issue is back on version 3.3.2. Here is the call-stack : 

2018-10-29 17:19:07,808 WARN [hook-callback:thread-1] <username> ... <IP> SSH - git-receive-pack '<project>/<repository>' c.a.s.i.h.r.DefaultRepositoryHookService [<project>/<repository>[556]] Error calling com.atlassian.stash.internal.plugin.legacy.CompositeRepositoryHook.preUpdate (org.christiangalsterer.stash-filehooks-plugin:filesize-hook)
com.atlassian.bitbucket.commit.NoSuchCommitException: Commit '0000000000000000000000000000000000000000' does not exist in repository '<repository>'.
at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.newNoSuchCommitException(
at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.evaluateStdErr(
at com.atlassian.bitbucket.scm.git.command.GitCommandExitHandler.onError(
at com.atlassian.stash.internal.scm.git.command.revlist.RevCoreExitHandler.onError(
at com.atlassian.bitbucket.scm.DefaultCommandExitHandler.onExit(
at com.atlassian.bitbucket.scm.BaseCommand.callExitHandler(
at com.atlassian.bitbucket.scm.BaseCommand$CommandFuture.internalGet(
at com.atlassian.bitbucket.scm.BaseCommand$CommandFuture.get(
at org.christiangalsterer.stash.filehooks.plugin.hook.ChangesetServiceImpl.getCommitsBetween(
at org.christiangalsterer.stash.filehooks.plugin.hook.FileSizeHook.onReceive(
at com.atlassian.stash.internal.plugin.legacy.PreReceiveRepositoryHookAdapter.preUpdate(
at com.atlassian.stash.internal.plugin.legacy.CompositeRepositoryHook.lambda$preUpdate$2(
at com.atlassian.stash.internal.plugin.legacy.CompositeRepositoryHook.handlingExceptions(
at com.atlassian.stash.internal.plugin.legacy.CompositeRepositoryHook.preUpdate(
at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService.preUpdate(
at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService.lambda$preUpdate$4(
at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService.preUpdate(
at com.atlassian.stash.internal.hook.DefaultBuiltInHookHandlerFactory.lambda$preReceive$0(
at com.atlassian.stash.internal.hook.DefaultHookService.doHandleRequest(
at com.atlassian.stash.internal.hook.DefaultHookService.handleRequest(
at com.atlassian.stash.internal.hook.DefaultHookService.handleRawRequest(
at com.atlassian.stash.internal.hook.DefaultHookService$1.lambda$run$0(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
... 26 frames trimmed
2018-10-29 17:19:07,809 INFO [hook-callback:thread-1] <username> ... <IP> SSH - git-receive-pack '<project>/<repository>' c.a.s.i.h.r.DefaultRepositoryHookService [<project>/<repository>[556]] hook 'filesize-hook' vetoed the push request

I tried to push a tag. 


Log in or Sign up to comment
AUG Leaders

Atlassian Community Events