diff --git a/master/buildbot/reporters/bitbucket.py b/master/buildbot/reporters/bitbucket.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/reporters/bitbucket.py
+++ b/master/buildbot/reporters/bitbucket.py
@@ -115,6 +115,8 @@ class BitbucketStatusPush(http.HttpStatusPushBase):
 
         if path.endswith('.git'):
             path = path[:-4]
+        while path.endswith('/'):
+            path = path[:-1]
 
         parts = path.split('/')
remove trailing / in the repo url