diff options
author | Stan Hu <stanhu@gmail.com> | 2017-01-25 23:13:09 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-01-26 10:17:57 -0800 |
commit | d09fdfd6c72e544fa3156a13cad59a791e977dce (patch) | |
tree | c52165158aff0d09789bbbf8ef7b9582371dd1ef /changelogs/unreleased | |
parent | 403cb125f5e2aced8088f24966624519f6e11e29 (diff) | |
download | gitlab-ce-d09fdfd6c72e544fa3156a13cad59a791e977dce.tar.gz |
Fix Error 500 when repositories contain annotated tags pointing to blobssh-fix-annotated-tags-pointing-to-blob
In repositories such as https://github.com/git/git.git, annotated tags can
point to blobs, not necessarily to commits. `Repository` attempts to
return the tags in the order of the commit date, but if a commit is not
available the previous implementation would error due to a `nil` target.
This change modifies the code to use the current time if a commit
is not associated with the given tag.
Closes #27228
Diffstat (limited to 'changelogs/unreleased')
-rw-r--r-- | changelogs/unreleased/sh-fix-annotated-tags-pointing-to-blob.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-fix-annotated-tags-pointing-to-blob.yml b/changelogs/unreleased/sh-fix-annotated-tags-pointing-to-blob.yml new file mode 100644 index 00000000000..ff2b38f21f2 --- /dev/null +++ b/changelogs/unreleased/sh-fix-annotated-tags-pointing-to-blob.yml @@ -0,0 +1,4 @@ +--- +title: Fix Error 500 when repositories contain annotated tags pointing to blobs +merge_request: +author: |