pharo-vcs / iceberg

Iceberg is the main toolset for handling VCS in Pharo.
MIT License
133 stars 84 forks source link

Push does not push tags other than in head commit #1812

Open Ducasse opened 6 months ago

Ducasse commented 6 months ago

self tags is empty in the following method because it returns the tag of the commit which is a new commit.

IceGitLocalBranch>>pushTagsToRemote: aRemote gitRemote: gitRemote progress: pushProgress

    self tags do: [ :tag | 
        self 
            pushTag: tag 
            toRemote: aRemote 
            gitRemote: gitRemote 
            progress: pushProgress ]

Here is a possible fix

IceGitLocalBranch>>pushTagsToRemote: aRemote gitRemote: gitRemote progress: pushProgress

    self repository tags do: [ :tag | 
        self 
            pushTag: tag 
            toRemote: aRemote 
            gitRemote: gitRemote 
            progress: pushProgress ]
tinchodias commented 6 months ago

the possible fix makes sense to me