Skip to content

Commit a6433aa

Browse files
committed
Add comment
1 parent b98f37b commit a6433aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

models/repo/repo.go

+2
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ func (repo *Repository) AfterLoad() {
277277
repo.NumOpenProjects = repo.NumProjects - repo.NumClosedProjects
278278
repo.NumOpenActionRuns = repo.NumActionRuns - repo.NumClosedActionRuns
279279

280+
// this is a temporary behaviour to support old repos, next step is to store the object format in the database
281+
// and read from database so this line could be removed. To not depend on git module, we use a constant variable here
280282
repo.ObjectFormatName = "sha1"
281283
}
282284

0 commit comments

Comments
 (0)