Issue #7081 closed

git-notes ignored when importing a repository (BB-8219)

Marcelo Manzan
created an issue

We are migrating our repos to Bitbucket and we found that the branches of notes are ignored, and we need to do this step manually.

I don't know how your GIT-importer works, but to get the notes we use the following configuration:

$ git remote add oldrepo git@codebasehq.com:owner/projectname/oldrepo.git
$ git config --add remote.oldrepo.fetch +refs/notes/*:refs/notes/*
$ git fetch oldrepo
remote: Counting objects: 312, done.
remote: Compressing objects: 100% (175/175), done.
remote: Total 312 (delta 103), reused 312 (delta 103)
Receiving objects: 100% (312/312), 43.88 KiB, done.
Resolving deltas: 100% (103/103), done.
From codebasehq.com:owner/projectname/oldrepo
 * [new branch]      refs/notes/bugfixes -> refs/notes/bugfixes
 * [new branch]      refs/notes/changes -> refs/notes/changes
 * [new branch]      refs/notes/features -> refs/notes/features
 * [new branch]      refs/notes/pre_deploy -> refs/notes/pre_deploy
 * [new branch]      refs/notes/versioning -> refs/notes/versioning
$ git config --add remote.bitbucket.fetch +refs/notes/*:refs/notes/*
$ git push bitbucket refs/notes/\*
Counting objects: 312, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (175/175), done.
Writing objects: 100% (312/312), 43.88 KiB, done.
Total 312 (delta 103), reused 312 (delta 103)
To git@bitbucket.org:abrilmdia/alx-concursos-data-entry.git
 * [new branch]      refs/notes/bugfixes -> refs/notes/bugfixes
 * [new branch]      refs/notes/changes -> refs/notes/changes
 * [new branch]      refs/notes/features -> refs/notes/features
 * [new branch]      refs/notes/pre_deploy -> refs/notes/pre_deploy
 * [new branch]      refs/notes/versioning -> refs/notes/versioning

Comments (2)

  1. Log in to comment