#5133 clone repo makes 2 different branches of main / rawhide symlink
Closed: Invalid by pingou. Opened by sergiomb.

I forked https://pkgs.fedoraproject.org/rpms/kmodtool into https://src.fedoraproject.org/fork/sergiomb/rpms/kmodtool , when I commit in rawhide of the fork it doesn't update the main repo .

git checkout rawhide
vi kmodtool.spec 
git commit . 
git push 
git checkout main
git pull 
git checkout -
gitlog
* aeb4972 2021-03-15 16:33 Sérgio M. Basto (HEAD -> rawhide, origin/rawhide) test commit
* eb949db 2021-03-14 13:15 Sérgio M. Basto (origin/main, main) Build kmods with the kernel-devel in buildroot instead use buildsys-build-rpmfusiom

Indeed, it looks like forking does not preserve the symlink that was created in
the main repo :(

This is technically an issue for either pagure-dist-git: https://pagure.io/pagure-dist-git/ or the infrastructure: https://pagure.io/fedora-infrastructure/
It is not specific/related to pagure itself.

You may be able to mimic the behavior server side in your clone by simply doing:

echo "ref: refs/heads/rawhide" > .git/refs/heads/main

(not tested though).

I'm going to close this ticket since it's not related to pagure.

Metadata Update from @pingou:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

Metadata