The simplest way may be just removing my package and start a new package from scratch, however, this action not only removes the package history but will also reset the cumulative release version number, which is unacceptable since that would make it impossible for client machines to follow updates to this package.
I have carried out a long search but failed to find a hint to this issue, and after some trail-and-error I think I have found a way:
- Check out the project's unexpanded files by using "osc co -u PRJ/PKG"
- Remove the "_link" file by running "osc rm _link"
- Copy in the latest package files since the link is now broken
- Check-in the changes
I've done a test and the steps above worked. However, it seems that by those steps the release version number will also be reset.
Update: darix from freenode/#opensuse-buildservice said 'osc in git has "osc detachbranch" exactly for that.'