Pull request suggestion(print-branch-links-hook) still have the old URL after changing the Bitbucket server URL

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

After changing the Bitbucket URL and updating the base URL, pull request suggestions() in the command prompt still have the old URL. 

When the change is pushed to server, the following appears in the the command prompt where in URL still points old one.

remote: 
remote: Create pull request for foo-test:
remote: https://<MY OLD URL>/projects/myproj/repos/myrepo/compare/commits?sourceBranch=refs/heads/foo-test\\ remote: 

原因

git remote is still pointing to old url

ソリューション

  • Do a fresh clone using new URL
  • set the git remote to new URL

    git remote set-url origin http://admin@<new url>/scm/<project>/<repo>.git


最終更新日: 2018 年 1 月 31 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.