diff --git a/jhbuild/versioncontrol/git.py b/jhbuild/versioncontrol/git.py
index ad3283b..8274076 100644
--- a/jhbuild/versioncontrol/git.py
+++ b/jhbuild/versioncontrol/git.py
@@ -205,7 +205,7 @@ class GitBranch(Branch):
 
         if not self.tag:
             if self.branch:
-                buildscript.execute(['git', 'rebase', 'origin', self.branch], 'git', cwd=cwd)
+                buildscript.execute(['git', 'rebase', 'origin/' + self.branch, self.branch], 'git', cwd=cwd)
             else:
                 buildscript.execute(['git', 'rebase', 'origin', 'master'], 'git', cwd=cwd)
 
