Fossil User Forum

`fossil import` drop un-numbered git tag
Login

`fossil import` drop un-numbered git tag

`fossil import` drop un-numbered git tag

(1) By SENOO, Ken (senooken) on 2025-01-04 15:22:15 [source]

I am impressed with Fossil and appreciate the author's work.

I am a Japanese born in 1989, and my name is SENOO, Ken. Since July 2022, I have been working to revive the FOSS project GNU social, a distributed SNS that was born in 2008. As part of this work, I felt that self-hosting of project repositories was important, and after considering many free repository hosting software, I decided on Fossil ( Announcement: Launch of GNU social repository hosting site GNU social JP Fossil | GNU social JP Web).

I will likely use it for the rest of my life, so I would like to say hello and also report a bug-like behavior that I found.

When I exported a git repository containing unnumbered tags and imported it with fossil import, the tags were discarded in fossil.

Below are the steps to reproduce.

$ fossil version
This is fossil version 2.25 [8f798279d5] 2024-11-06 12:59:09 UTC
git clone --depth 1 https://notabug.org/gnusocialjp/gnusocial gnusocial.git
cd gnusocial.git
git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
git fetch --unshallow
cd ..
git -C gnusocial.git fast-export --all | fossil import --git gnusocial.fossil

git tag has before-gnusocialjp, but this tag was ignored by fossil.

$ git -C gnusocial.git tag
before-gnusocialjp
v1.1.3release
v1.2.0beta4
v1.20.9release
v2.0.0beta0
v2.0.2
$ fossil tag list -R gnusocial.fossil
main
origin/1.1.x
origin/1.2.x
origin/1.5
origin/1.20.x
origin/develop
origin/experimental
origin/master
origin/nightly
origin/v3
trunk
v1.1.3release
v1.2.0beta4
v1.20.9release
v2.0.0beta0
v2.0.2

The expected value is that before-gnusocialjp will be displayed in the fossil tag list.

Could this be avoided by exporting git or using additional options with fossil import?

(2) By SENOO, Ken (senooken) on 2025-01-19 22:10:29 in reply to 1 [link] [source]

origin/master branch is same as before-gnusocialjp, so fossil import may drop tag with same branch. I added tag following command for fixing.

fossil tag add before-gnusocialjp master