Single commit repo (#95)

* supporting repos with one commit
This commit is contained in:
Zachary Rice authored and GitHub committed 2018-09-26 14:28:22 -05:00
1 parent 8eb28cbb4c
commit fad98cbde2
216 files changed
+27523 -3828

No files matched your search

+2 -2
View File
@@ -619,7 +619,7 @@ func getHaves(
return result, nil
}
const refspecTag = "+refs/tags/*:refs/tags/*"
const refspecAllTags = "+refs/tags/*:refs/tags/*"
func calculateRefs(
spec []config.RefSpec,
@@ -627,7 +627,7 @@ func calculateRefs(
tagMode TagMode,
) (memory.ReferenceStorage, error) {
if tagMode == AllTags {
spec = append(spec, refspecTag)
spec = append(spec, refspecAllTags)
}
refs := make(memory.ReferenceStorage)