Skip to content
Snippets Groups Projects
Commit 2cc43aaa authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Keep a commit around if its sha is present

Closes gitaly#1054
parent ddad22c4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -253,7 +253,7 @@ class Repository
# branches or tags, but we want to keep some of these commits around, for
# example if they have comments or CI builds.
def keep_around(sha)
return unless sha && commit_by(oid: sha)
return unless sha.present? && commit_by(oid: sha)
 
return if kept_around?(sha)
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment