diff --git a/gitlab/update_feedstock.py b/gitlab/update_feedstock.py
index ed853c54356fa4076ead7a200da6cce916e1e56e..c824c8a41f8d27e5688b4e274500fc152171aaa7 100755
--- a/gitlab/update_feedstock.py
+++ b/gitlab/update_feedstock.py
@@ -202,6 +202,8 @@ def main(package, direct_push=False):
               'https://github.com/conda-forge/'
               '{}-feedstock/commits/master\n\n'.format(package))
     else:
+      subprocess.call(['git', 'remote', 'set-url', 'origin',
+        'https://idiapbbb:{}@gitlab.idiap.ch/bob/bob.conda.git'.format(os.environ.get('IDIAPBBB_PASS'))])
       run_commands(['git', 'push', '--force', '--set-upstream',
                     'origin', branch_name])
       gitlab = Gitlab(os.environ.get('GITLAB_API_TOKEN'))