Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Conversation

lunny
Copy link
Member

@lunny lunny commented Nov 22, 2017

Also cherry-picked from github.com/gogits/git 16c37513c71a92abb31ffd8d8bd2308cb1016162.

@lafriks
Copy link
Member

lafriks commented Nov 22, 2017

CI failed

// If both loose refs and packed refs exist then it's highly
// likely that the loose refs are more recent than packed (created
// on top of packed older refs). Therefore we can append each
// together taking the packed refs first.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not return duplicate refs. Especially not stale refs :(

names := []string{}

for _, ref := range bytes.Split(refData, []byte("\n")) {
if tag := re.Find(ref); tag != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would this get the tag unreleased-beta-version ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and the regexp given above doesn't find any tags at all since it's broken :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants