##// END OF EJS Templates
scm: git: add the comment of the reason to scan database in fetching every time (#10470)...
Toshi MARUYAMA -
r9153:76435033e7a1
parent child
Show More
@@ -165,6 +165,20 class Repository::Git < Repository
165 return if revisions.blank?
165 return if revisions.blank?
166
166
167 # Make the search for existing revisions in the database in a more sufficient manner
167 # Make the search for existing revisions in the database in a more sufficient manner
168 #
169 # Git branch is the reference to the specific revision.
170 # Git can *delete* remote branch and *re-push* branch.
171 #
172 # $ git push remote :branch
173 # $ git push remote branch
174 #
175 # After deleting branch, revisions remain in repository until "git gc".
176 # On git 1.7.2.3, default pruning date is 2 weeks.
177 # So, "git log --not deleted_branch_head_revision" return code is 0.
178 #
179 # After re-pushing branch, "git log" returns revisions which are saved in database.
180 # So, Redmine needs to scan revisions and database every time.
181 #
168 # This is replacing the one-after-one queries.
182 # This is replacing the one-after-one queries.
169 # Find all revisions, that are in the database, and then remove them from the revision array.
183 # Find all revisions, that are in the database, and then remove them from the revision array.
170 # Then later we won't need any conditions for db existence.
184 # Then later we won't need any conditions for db existence.
General Comments 0
You need to be logged in to leave comments. Login now