summaryrefslogtreecommitdiff
path: root/changelogs/unreleased
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-01-25 23:13:09 -0800
committerStan Hu <stanhu@gmail.com>2017-01-26 10:17:57 -0800
commitd09fdfd6c72e544fa3156a13cad59a791e977dce (patch)
treec52165158aff0d09789bbbf8ef7b9582371dd1ef /changelogs/unreleased
parent403cb125f5e2aced8088f24966624519f6e11e29 (diff)
downloadgitlab-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.yml4
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: